-
Notifications
You must be signed in to change notification settings - Fork 106
Open
Labels
Milestone
Description
There should be RUN_SUITE1/RUN_SUITEp macros for suites that take argument(s), such as a random number seed, verbosity setting, or iteration limit.
Because the existing syntax for defining/calling suites is SUITE(suitename), this will be a breaking API change.
/* previous style */
SUITE(suite);
/* new style */
SUITE suite(void);
SUITE suite1(void *some_arg);
SUITE suite_multi(size_t apple, void *banana, int carrot);
SUITE suite(void) {}
RUN_SUITE(suite); /* no change */
RUN_SUITE1(suite1, arg); /* suite with 1 argument */
/* suite with multiple arguments (C99 and later standards only) */
RUN_SUITEp(suite_multi, 1, NULL, 2);
Reactions are currently unavailable