From 81d8686f99b341eb78d94c850ef4bb2620eef38f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 21 May 2020 09:12:19 +0200 Subject: [PATCH] Changed TODO_ASSERT_EQUALS, we have a false negative --- test/testnullpointer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testnullpointer.cpp b/test/testnullpointer.cpp index c2e8d71d1..fa450ffc2 100644 --- a/test/testnullpointer.cpp +++ b/test/testnullpointer.cpp @@ -205,7 +205,7 @@ private: " tok = tok->next();\n" " }\n" "}"); - TODO_ASSERT_EQUALS("", "[test.cpp:5] -> [test.cpp:3]: (warning) Either the condition 'while' is redundant or there is possible null pointer dereference: tok.\n", errout.str()); + TODO_ASSERT_EQUALS("[test.cpp:5] -> [test.cpp:3]: (warning) Either the condition 'while' is redundant or there is possible null pointer dereference: tok.\n", "", errout.str()); check("void foo(Token &tok)\n" "{\n"