From 360ec9d8535871b1799574334aa2ebf2fad335a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 14 Feb 2015 16:44:08 +0100 Subject: [PATCH] updated TestBufferOverrun test case. Since checker doesn't use library dont load std.cfg. --- test/testbufferoverrun.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/testbufferoverrun.cpp b/test/testbufferoverrun.cpp index 80c4f600d..945db5102 100644 --- a/test/testbufferoverrun.cpp +++ b/test/testbufferoverrun.cpp @@ -3659,11 +3659,11 @@ private: ASSERT_EQUALS("", errout.str()); // #5835 - checkstd("int main(int argc, char* argv[]) {\n" - " char prog[10];\n" - " strcpy(prog, argv[0]);\n" - " strcpy(prog, argv[0]);\n" - "}"); + check("int main(int argc, char* argv[]) {\n" + " char prog[10];\n" + " strcpy(prog, argv[0]);\n" + " strcpy(prog, argv[0]);\n" + "}"); ASSERT_EQUALS("[test.cpp:3]: (error) Buffer overrun possible for long command line arguments.\n" "[test.cpp:4]: (error) Buffer overrun possible for long command line arguments.\n", errout.str()); }