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

Warn against combining auto test registration and modules with arrays of tests #25

Open
martinmoene opened this issue Nov 23, 2015 · 0 comments

Comments

@martinmoene
Copy link
Owner

So far found one opportunity to check:

  • In lest_MODULE() check for lest_FEATURE_AUTO_REGISTER and warn against auto registration.
  • Or define lest_MODULE() as static_assert( false, "...") for auto test registration.
  • Or just move lest_MODULE() into non-auto test registration preprocessor else branch.

This doesn't help though to warn against the following incompatible use which you likely encounter earlier:

// for auto test registration
#define CASE( name ) lest_CASE( specification, name );

// non-auto test registration:
static lest::test specification[] =
{
CASE(...) {}
}

See (end of) issue #23 "User-defined functions based on lest macros".

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