Skip to content

Commit

Permalink
Changed parameterized tests to mirror the fix to #50
Browse files Browse the repository at this point in the history
  • Loading branch information
Snaipe committed Sep 20, 2015
1 parent 8fab533 commit 0da61ed
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions include/criterion/parameterized.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@
.line_ = __LINE__, \
__VA_ARGS__ \
)); \
SECTION_("cr_tst") \
struct criterion_test IDENTIFIER_(Category, Name, meta) = { \
#Name, \
#Category, \
(void(*)(void)) IDENTIFIER_(Category, Name, impl), \
&IDENTIFIER_(Category, Name, extra) \
} SECTION_SUFFIX_; \
}; \
SECTION_("cr_tst") \
struct criterion_test *IDENTIFIER_(Category, Name, ptr) \
= &IDENTIFIER_(Category, Name, meta) SECTION_SUFFIX_; \
CR_PARAM_TEST_PROTOTYPE_(Param, Category, Name)

# define ParameterizedTestParameters(Category, Name) \
Expand Down

0 comments on commit 0da61ed

Please sign in to comment.