Skip to content

Commit 360ec9d

Browse files
committed
updated TestBufferOverrun test case. Since checker doesn't use library dont load std.cfg.
1 parent 0c0d621 commit 360ec9d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎test/testbufferoverrun.cpp‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3659,11 +3659,11 @@ class TestBufferOverrun : public TestFixture {
36593659
ASSERT_EQUALS("", errout.str());
36603660

36613661
// #5835
3662-
checkstd("int main(int argc, char* argv[]) {\n"
3663-
" char prog[10];\n"
3664-
" strcpy(prog, argv[0]);\n"
3665-
" strcpy(prog, argv[0]);\n"
3666-
"}");
3662+
check("int main(int argc, char* argv[]) {\n"
3663+
" char prog[10];\n"
3664+
" strcpy(prog, argv[0]);\n"
3665+
" strcpy(prog, argv[0]);\n"
3666+
"}");
36673667
ASSERT_EQUALS("[test.cpp:3]: (error) Buffer overrun possible for long command line arguments.\n"
36683668
"[test.cpp:4]: (error) Buffer overrun possible for long command line arguments.\n", errout.str());
36693669
}

0 commit comments

Comments
 (0)