Skip to content

Commit

Permalink
Fix more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github authored Jun 14, 2024
1 parent eb0f6cc commit 66dd48b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/testunusedfunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class TestUnusedFunctions : public TestFixture {
"{\n"
" void (*f)() = cond ? f1 : NULL;\n"
"}");
ASSERT_EQUALS("", errout_str());
TODO_ASSERT_EQUALS("[test.cpp:1]: (style) The function 'f1' is never used.\n", "", errout_str());
}

void callback2() { // #8677
Expand Down Expand Up @@ -323,7 +323,7 @@ class TestUnusedFunctions : public TestFixture {
"};\n");
ASSERT_EQUALS("[test.cpp:3]: (style) The function 'tf' is never used.\n", errout_str());

check("struct S {\n"
check("struct C {\n"
" template<typename T>\n"
" void tf(const T&) { }\n"
"};\n"
Expand All @@ -333,7 +333,7 @@ class TestUnusedFunctions : public TestFixture {
"}\n");
ASSERT_EQUALS("", errout_str());

check("struct S {\n"
check("struct C {\n"
" template<typename T>\n"
" void tf(const T&) { }\n"
"};\n"
Expand Down Expand Up @@ -585,7 +585,7 @@ class TestUnusedFunctions : public TestFixture {
ASSERT_EQUALS("[test.cpp:2]: (style) The function 'f' is never used.\n", errout_str());

check("void f(void) {}\n"
"void (*list[])(void) = {f}");
"void (*list[])(void) = {f};");
ASSERT_EQUALS("", errout_str());
}

Expand Down

0 comments on commit 66dd48b

Please sign in to comment.