Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Jan 14, 2025
1 parent 38401e0 commit 480d4fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/testleakautovar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ class TestLeakAutoVar : public TestFixture {
check("void f(char* old, char* value, size_t len) {\n"
" char *str = strdup(value);\n"
" memcpy(old, str, len);\n"
"}\n", dinit(CheckOptions, $.s = &s));
"}\n", dinit(CheckOptions, $.cpp = true, $.s = &s));
ASSERT_EQUALS("[test.cpp:4]: (error) Memory leak: str\n", errout_str());
}

Expand Down Expand Up @@ -2805,7 +2805,7 @@ class TestLeakAutoVar : public TestFixture {
" free(ptr);\n"
" }\n"
" return 'a';\n"
"}\n", dinit(CheckOptions, $.cpp = true));
"}\n");
ASSERT_EQUALS("[test.c:7]: (error) Memory leak: ptr\n", errout_str());
}

Expand Down

0 comments on commit 480d4fe

Please sign in to comment.