From c2b85d103224e62f843d837e491b97efc7c30a53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 3 Feb 2015 18:35:52 +0100 Subject: [PATCH] Fixed testrunner --- test/testleakautovar.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/test/testleakautovar.cpp b/test/testleakautovar.cpp index 802cc8d91..93c823caa 100644 --- a/test/testleakautovar.cpp +++ b/test/testleakautovar.cpp @@ -233,7 +233,7 @@ private: " char *p = malloc(10);\n" " x = a(b(p));\n" "}"); - ASSERT_EQUALS("[test.c:4]: (information) --check-library: Function b() should have / configuration\n", errout.str()); + ASSERT_EQUALS("[test.c:4]: (information) --check-library: Function b() should have / configuration\n", errout.str()); } void assign12() { // #4236: FP. bar(&x) @@ -809,7 +809,7 @@ private: " fatal_error();\n" "}"); ASSERT_EQUALS("[test.c:3]: (information) --check-library: Function fatal_error() should have configuration\n" - "[test.c:4]: (information) --check-library: Function fatal_error() should have / configuration\n", + "[test.c:4]: (information) --check-library: Function fatal_error() should have / configuration\n", errout.str()); } @@ -1090,7 +1090,7 @@ private: " x(p);\n" "}"); ASSERT_EQUALS("[test.c:3]: (information) --check-library: Function x() should have configuration\n" - "[test.c:4]: (information) --check-library: Function x() should have / configuration\n", + "[test.c:4]: (information) --check-library: Function x() should have / configuration\n", errout.str()); } @@ -1102,7 +1102,7 @@ private: " x(&p);\n" "}"); ASSERT_EQUALS("[test.c:3]: (information) --check-library: Function x() should have configuration\n" - "[test.c:4]: (information) --check-library: Function x() should have / configuration\n", + "[test.c:4]: (information) --check-library: Function x() should have / configuration\n", errout.str()); } @@ -1111,14 +1111,14 @@ private: " char *p = malloc(10);\n" " if (set_data(p)) { }\n" "}"); - ASSERT_EQUALS("[test.c:4]: (information) --check-library: Function set_data() should have / configuration\n", errout.str()); + ASSERT_EQUALS("[test.c:4]: (information) --check-library: Function set_data() should have / configuration\n", errout.str()); check("void f() {\n" " char *p = malloc(10);\n" " if (set_data(p)) { return; }\n" "}"); - ASSERT_EQUALS("[test.c:3]: (information) --check-library: Function set_data() should have / configuration\n" - "[test.c:4]: (information) --check-library: Function set_data() should have / configuration\n" + ASSERT_EQUALS("[test.c:3]: (information) --check-library: Function set_data() should have / configuration\n" + "[test.c:4]: (information) --check-library: Function set_data() should have / configuration\n" , errout.str()); } @@ -1128,7 +1128,7 @@ private: " int ret = set_data(p);\n" " return ret;\n" "}"); - ASSERT_EQUALS("[test.c:4]: (information) --check-library: Function set_data() should have / configuration\n", errout.str()); + ASSERT_EQUALS("[test.c:4]: (information) --check-library: Function set_data() should have / configuration\n", errout.str()); } void ptrptr() { @@ -1143,7 +1143,7 @@ private: " unsigned char *dataCopy = malloc(length * sizeof(unsigned char));\n" " m_dsmccQueue.enqueue(new DSMCCPacket(dataCopy));\n" "}"); - ASSERT_EQUALS("[test.c:4]: (information) --check-library: Function DSMCCPacket() should have / configuration\n", errout.str()); + ASSERT_EQUALS("[test.c:4]: (information) --check-library: Function DSMCCPacket() should have / configuration\n", errout.str()); check("void QueueDSMCCPacket(unsigned char *data, int length) {\n" " unsigned char *dataCopy = malloc(length * sizeof(unsigned char));\n"