memory leaks: minor fix for testcase
This commit is contained in:
parent
d8f2ec934b
commit
59a4a36fe1
|
@ -531,7 +531,7 @@ private:
|
||||||
void findleak()
|
void findleak()
|
||||||
{
|
{
|
||||||
ASSERT_EQUALS(1, dofindleak("alloc;"));
|
ASSERT_EQUALS(1, dofindleak("alloc;"));
|
||||||
ASSERT_EQUALS(1, dofindleak("; use; alloc; }"));
|
ASSERT_EQUALS(1, dofindleak("; use; { alloc; }"));
|
||||||
ASSERT_EQUALS(2, dofindleak("alloc;\n return;"));
|
ASSERT_EQUALS(2, dofindleak("alloc;\n return;"));
|
||||||
ASSERT_EQUALS(-1, dofindleak("alloc; return use;"));
|
ASSERT_EQUALS(-1, dofindleak("alloc; return use;"));
|
||||||
ASSERT_EQUALS(2, dofindleak("alloc;\n callfunc;"));
|
ASSERT_EQUALS(2, dofindleak("alloc;\n callfunc;"));
|
||||||
|
|
Loading…
Reference in New Issue