From 28fd6ce2f05544e7cb37ea55e2d61768e3ec1726 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 23 Jul 2015 13:50:02 +0200 Subject: [PATCH] testuninitvar: use new checking instead of executionpath in 2 more testcases --- test/testuninitvar.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/test/testuninitvar.cpp b/test/testuninitvar.cpp index bd4ec0a5f..e7ab9fdef 100644 --- a/test/testuninitvar.cpp +++ b/test/testuninitvar.cpp @@ -2087,11 +2087,11 @@ private: ASSERT_EQUALS("", errout.str()); // using uninitialized function pointer.. - checkUninitVar("void foo()\n" - "{\n" - " void (*f)();\n" - " f();\n" - "}"); + checkUninitVar2("void foo()\n" + "{\n" + " void (*f)();\n" + " f();\n" + "}"); ASSERT_EQUALS("[test.cpp:4]: (error) Uninitialized variable: f\n", errout.str()); checkUninitVarB("void foo() {\n" @@ -2192,11 +2192,11 @@ private: "}").c_str()); ASSERT_EQUALS("[test.cpp:3]: (error) Uninitialized variable: x\n", errout.str()); - checkUninitVar((funca + - "void b() {\n" - " int *p;\n" - " a(*p);\n" - "}").c_str()); + checkUninitVar2((funca + + "void b() {\n" + " int *p;\n" + " a(*p);\n" + "}").c_str()); ASSERT_EQUALS("[test.cpp:3]: (error) Uninitialized variable: p\n", errout.str()); }