Fix patch: use minimal context for unit_test.h template change
This commit is contained in:
parent
d024087715
commit
ab8cad5439
1 changed files with 3 additions and 5 deletions
|
|
@ -1,11 +1,9 @@
|
||||||
--- a/unit_test.h
|
--- a/unit_test.h
|
||||||
+++ b/unit_test.h
|
+++ b/unit_test.h
|
||||||
@@ -56,8 +56,8 @@
|
@@ -58,7 +58,7 @@
|
||||||
|
|
||||||
#define TEST_BEGIN__(text, file, line) \
|
#define TEST_BEGIN__(text, file, line) \
|
||||||
- namespace UnitTest##line { \
|
namespace UnitTest##line { \
|
||||||
- static void Test() {
|
- static void Test() {
|
||||||
+ namespace DeadTest##line { \
|
+ template<bool _dead=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