File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2230,17 +2230,17 @@ class TestLeakAutoVar : public TestFixture {
22302230 " void * p2 = malloc(2);\n "
22312231 " return;\n "
22322232 " }" );
2233- ASSERT_EQUALS (" [test.c:3:0 ]: (error) Memory leak: p1 [memleak]\n "
2234- " [test.c:5:0 ]: (error) Memory leak: p2 [memleak]\n " , errout_str ());
2233+ ASSERT_EQUALS (" [test.c:3:30 ]: (error) Memory leak: p1 [memleak]\n "
2234+ " [test.c:5:30 ]: (error) Memory leak: p2 [memleak]\n " , errout_str ());
22352235
22362236 check (" void f() {\n "
22372237 " if (x > 0)\n "
22382238 " void * p1 = malloc(5);\n "
22392239 " else\n "
22402240 " void * p2 = malloc(2);\n "
22412241 " }" );
2242- ASSERT_EQUALS (" [test.c:3:0 ]: (error) Memory leak: p1 [memleak]\n "
2243- " [test.c:5:0 ]: (error) Memory leak: p2 [memleak]\n " , errout_str ());
2242+ ASSERT_EQUALS (" [test.c:3:30 ]: (error) Memory leak: p1 [memleak]\n "
2243+ " [test.c:5:30 ]: (error) Memory leak: p2 [memleak]\n " , errout_str ());
22442244 }
22452245
22462246 void ifelse21 () {
You can’t perform that action at this time.
0 commit comments