Test: Fix memory leak when adding a test case
This commit is contained in:
+1
-1
@@ -14,7 +14,7 @@
|
|||||||
() \
|
() \
|
||||||
{ \
|
{ \
|
||||||
Test::TestSuite::the().addCase( \
|
Test::TestSuite::the().addCase( \
|
||||||
*new Test::TestCase(#x, __TEST_CASE_FUNCTION(x))); \
|
{ #x, __TEST_CASE_FUNCTION(x) }); \
|
||||||
} \
|
} \
|
||||||
}; \
|
}; \
|
||||||
static struct __TEST_CASE_STRUCT(x) __TEST_CASE_STRUCT(x); \
|
static struct __TEST_CASE_STRUCT(x) __TEST_CASE_STRUCT(x); \
|
||||||
|
|||||||
Reference in New Issue
Block a user