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

Find a way to use Catch2 with main() from Rodos #321

Open
PatrickKa opened this issue Aug 27, 2024 · 0 comments
Open

Find a way to use Catch2 with main() from Rodos #321

PatrickKa opened this issue Aug 27, 2024 · 0 comments

Comments

@PatrickKa
Copy link
Contributor

Description

If we want to unit test something that needs to run Rodos like EdacVariable which uses a Rodos semaphore, we cannot use Catch2 out of the box. We need to use Catch2 with a custom main(). This should be possible since Rodos allows users to provide their own main function. More precisely, the main() from Rodos calls MAIN() which can be user provided. Unfortunately, this MAIN() does not get the argc, argv arguments which Catch2 needs. This means we have to hack Rodos a bit more to change that.

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

1 participant