Fix patch: use minimal context for unit_test.h template change

This commit is contained in:
afiqzudinhadi 2026-06-22 23:13:13 +08:00
parent d024087715
commit ab8cad5439

View file

@ -1,11 +1,9 @@
--- a/unit_test.h
+++ b/unit_test.h
@@ -56,8 +56,8 @@
@@ -58,7 +58,7 @@
#define TEST_BEGIN__(text, file, line) \
- namespace UnitTest##line { \
namespace UnitTest##line { \
- static void Test() {
+ namespace DeadTest##line { \
+ template<bool _dummy=false> static void Test() {
+ template<bool _dead=false> static void Test() {
#define TEST_END \