Fix patch: correct line numbers for unit_test.h TEST_BEGIN override
This commit is contained in:
parent
752d9e2c7b
commit
d024087715
1 changed files with 1 additions and 5 deletions
|
|
@ -1,10 +1,7 @@
|
||||||
--- a/unit_test.h
|
--- a/unit_test.h
|
||||||
+++ b/unit_test.h
|
+++ b/unit_test.h
|
||||||
@@ -53,9 +53,10 @@
|
@@ -56,8 +56,8 @@
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
+// Dead template: body parsed but never instantiated → never compiled
|
|
||||||
#define TEST_BEGIN__(text, file, line) \
|
#define TEST_BEGIN__(text, file, line) \
|
||||||
- namespace UnitTest##line { \
|
- namespace UnitTest##line { \
|
||||||
- static void Test() {
|
- static void Test() {
|
||||||
|
|
@ -12,4 +9,3 @@
|
||||||
+ template<bool _dummy=false> static void Test() {
|
+ template<bool _dummy=false> static void Test() {
|
||||||
|
|
||||||
#define TEST_END \
|
#define TEST_END \
|
||||||
} \
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue