-
Notifications
You must be signed in to change notification settings - Fork 275
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
Missing header in mocked version #486
Comments
Using previous Ceedling there was no Module_private.h on test/mocks/ something strange is that this file now contains a single header
If I disable prepocessor on my configuration, only Module.h is now included in this test/mocks/Module_private.h but my STATIC functions are not parsed to remove the static keyword. |
I did a small example to reproduce this if you want to give it a try. On this example there is no more clock.h but the only header included in test/mocks/Timer_private.h is MyTypes.h instead of Timer.h |
I've tried a lot with different configurations and haven't found a solution, if anyone uses a similar module structure and you have a tip I'm interested =) |
Hi,
I am currently switching from Ceedling 0.31 to 1.0.0 on a project that is already fully tested.
Usually my modules are arranged like that :
Module.c includes both Module.h and Module_private.h
Module_private.h include Module.h to get specific typedef
On my test files test_Module.c include Module.h and mock Module_private.h
This configurations was working with previous versions but on latest CMock (2.6.0) Module.h is not included in the mocked Module_private.h and the compiler complains about some types that are not defined (typedef structs from Module.h).
I generated a new project with latestCeedling pre-release to get default configuration yaml and then applied my old configuration following new documentation, maybe I missed something there ? Or this is no more achievable and there is now a better way to do it ?
The text was updated successfully, but these errors were encountered: