Skip to content
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

Parsing of TEST_SOURCE_FILE fails with dots in the file name #988

Closed
elagil opened this issue Jan 14, 2025 · 5 comments
Closed

Parsing of TEST_SOURCE_FILE fails with dots in the file name #988

elagil opened this issue Jan 14, 2025 · 5 comments

Comments

@elagil
Copy link

elagil commented Jan 14, 2025

Hello!

I found an issue where TEST_SOURCE_FILE("generated.capnp.c") yields

🧨 EXCEPTION: File 'p.c' specified with TEST_SOURCE_FILE() in test_file cannot be found in the source file collection
🌱 Ceedling could not complete operations because of errors

I can work around it by just using #include "generated.capnp.c".

@Letme
Copy link
Contributor

Letme commented Jan 14, 2025

Any reasons you use dot as a separator in file instead of just file ending?

@elagil
Copy link
Author

elagil commented Jan 14, 2025

It's a generated file from a code generator, which I cannot currently influence.

@mkarlesky
Copy link
Member

Thank you, @elagil. We put some effort into handling multi-dotted file names a while back. But, we obviously forgot to give attention to the content of TEST_SOURCE_FILE(). For an extra challenge, your example has '.c' in it twice!

We should be able to fix this easily and soon.

@elagil
Copy link
Author

elagil commented Jan 14, 2025

Thanks @mkarlesky, that's great to hear!

@mvandervoord
Copy link
Member

:) this is fixed in 0293aa9 (the 1.0.1 pre-release).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants