updated TestBufferOverrun test case. Since checker doesn't use library dont load std.cfg.

This commit is contained in:
Daniel Marjamäki 2015-02-14 16:44:08 +01:00
parent 0c0d62171e
commit 360ec9d853
1 changed files with 5 additions and 5 deletions

View File

@ -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());
}