]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
testfw: Give compile error on empty suite names
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 1 Sep 2010 20:46:11 +0000 (22:46 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 1 Sep 2010 20:46:11 +0000 (22:46 +0200)
test/framework.h

index bdfa9c802b2f49a55f4f0173e5c7f1d39e3e05f8..3c616b5aff8d6b0d963f03bf0a7ed7e307224f2f 100644 (file)
@@ -35,9 +35,8 @@
                        cct_test_end(); \
                } \
                ++_test_counter; \
+               { static int name = 0; (void)name; /* Verify test name. */ } \
                if (_test_counter >= _start_point) { \
-                       static int _verify_test_name##name = 0; \
-                       (void)_verify_test_name##name; \
                        cct_test_begin(#name);
 
 #define TEST_SUITE_END \