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

Can't create a suite without set_up and tear_down #5

Open
rcowsill opened this issue Feb 12, 2024 · 0 comments · May be fixed by #6
Open

Can't create a suite without set_up and tear_down #5

rcowsill opened this issue Feb 12, 2024 · 0 comments · May be fixed by #6

Comments

@rcowsill
Copy link

The readme says:

It is possible to define a suite without specifying set_up or tear_down methods.

I tried to do that using the following code:

LT_BEGIN_SUITE(example_suite)
LT_END_SUITE(example_suite)

That gave me compile errors at littletest.hpp lines 367 and 372, because set_up and tear_down are not defined in example_suite.

Providing no-op implementations in the base class suite fixes the errors, and still allows suites to define custom set_up/tear_down if required.

@rcowsill rcowsill linked a pull request Feb 12, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant