From b97779591ee2f1b2da74f4eca635f317e4363d68 Mon Sep 17 00:00:00 2001 From: PKEuS Date: Tue, 4 Apr 2017 10:45:08 +0200 Subject: [PATCH] Fixed unit test in testbufferoverrun.cpp --- test/testbufferoverrun.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/testbufferoverrun.cpp b/test/testbufferoverrun.cpp index 3c887e9b5..680fce7f6 100644 --- a/test/testbufferoverrun.cpp +++ b/test/testbufferoverrun.cpp @@ -2947,9 +2947,9 @@ private: "{\n" " enum E { };\n" " E *e; e = new E[10];\n" - " s[10] = 0;\n" + " e[10] = 0;\n" "}"); - TODO_ASSERT_EQUALS("[test.cpp:5]: (error) Array 's[10]' accessed at index 10, which is out of bounds.\n", "", errout.str()); + ASSERT_EQUALS("[test.cpp:5]: (error) Array 'e[10]' accessed at index 10, which is out of bounds.\n", errout.str()); } // data is allocated with malloc