From c9e92626827219cdda68e33e3a3817fa709f2c15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 12 Jan 2014 19:51:05 +0100 Subject: [PATCH] value flow: use checknullpointer checking based on new value flow analysis in the TestNullPointer --- test/testnullpointer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/testnullpointer.cpp b/test/testnullpointer.cpp index cd245385f..5efe38444 100644 --- a/test/testnullpointer.cpp +++ b/test/testnullpointer.cpp @@ -86,7 +86,7 @@ private: Settings settings; settings.addEnabled("warning"); settings.inconclusive = inconclusive; - //settings.valueFlow = true; + settings.valueFlow = true; // cfg const char cfg[] = "\n" @@ -560,7 +560,7 @@ private: " if (*p == 0) { }\n" " if (!p) { }\n" "}"); - TODO_ASSERT_EQUALS("[test.cpp:3] -> [test.cpp:4]: (warning) Possible null pointer dereference: p - otherwise it is redundant to check it against null.\n", "", errout.str()); + ASSERT_EQUALS("[test.cpp:3] -> [test.cpp:4]: (warning) Possible null pointer dereference: p - otherwise it is redundant to check it against null.\n", errout.str()); // no error check("void foo()\n"