-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ceedling V1.0.0 inexplicably sets the macro UNITY_USE_COMMAND_LINE_ARGS #991
Comments
Hi, @dbwalker0min. I'm very curious to understand what you are doing and why this is causing a problem for you. If you're using Ceedling for tests you're generating test runners that have This can be documented better. Until I understand what your specific scenario is I can't develop an opinion on what else might need to change. |
Yes, I'm using an emulator to run the test executable. My code links in a startup file that points to I am not running ceedling with the
I've also tried the When I run ceedling with the
To be clear, modifying the code so main is called with arguments is functional. It's just something I don't quite understand. |
Nevermind. Dumb user error. I was editing the text file copy of my project file. Once I set |
@dbwalker0min Great. You figured it out. I'm going to reopen this issue and mark it as documentation to keep it on the to-do list. I think we'll add some logging as well that explains why this symbol or others are being automatically defined. We've started logging problematic configuration combos. I think we can also do something here for when the test fixture is redefined to anything other than default to flag potentially problematic settings like using backtrace. |
I've noticed that when I'm running Ceedling 1.0.0 (in verbose mode), the macro
UNITY_USE_COMMAND_LINE_ARGS
is being defined on the compiler command line, even though I have not set it inproject.yml
. I may have some settings wrong inproject.yml
that induce this (I've attached it for your reference).Debugging this, I found my function was calling main with no arguments, i.e.
main()
. When Ceedling is run with this macro set, it wants to be called asmain(argc, argv)
, so I made sure to call it this way withargc
zero. When I do this, everything runs great.I'm still left wondering why this macro gets defined.
project.yml.txt
The text was updated successfully, but these errors were encountered: