testbufferoverrun; refactor TODO test cases
This commit is contained in:
parent
a40b85ccc6
commit
a2ff7752b4
|
@ -183,7 +183,7 @@ private:
|
|||
TEST_CASE(buffer_overrun_32); //#10244
|
||||
TEST_CASE(buffer_overrun_errorpath);
|
||||
TEST_CASE(buffer_overrun_bailoutIfSwitch); // ticket #2378 : bailoutIfSwitch
|
||||
// TODO TEST_CASE(buffer_overrun_function_array_argument);
|
||||
TEST_CASE(buffer_overrun_function_array_argument);
|
||||
// TODO alloca TEST_CASE(possible_buffer_overrun_1); // #3035
|
||||
TEST_CASE(buffer_overrun_readSizeFromCfg);
|
||||
|
||||
|
@ -2758,21 +2758,21 @@ private:
|
|||
" char a[2];\n"
|
||||
" f(a);\n"
|
||||
"}");
|
||||
ASSERT_EQUALS("[test.cpp:4]: (warning) The array 'a' is too small, the function 'f' expects a bigger one.\n", errout.str());
|
||||
TODO_ASSERT_EQUALS("[test.cpp:4]: (warning) The array 'a' is too small, the function 'f' expects a bigger one.\n", "", errout.str());
|
||||
|
||||
check("void f(float a[10][3]);\n"
|
||||
"void g() {\n"
|
||||
" float a[2][3];\n"
|
||||
" f(a);\n"
|
||||
"}");
|
||||
ASSERT_EQUALS("[test.cpp:4]: (warning) The array 'a' is too small, the function 'f' expects a bigger one.\n", errout.str());
|
||||
TODO_ASSERT_EQUALS("[test.cpp:4]: (warning) The array 'a' is too small, the function 'f' expects a bigger one.\n", "", errout.str());
|
||||
|
||||
check("void f(int a[20]);\n"
|
||||
"void g() {\n"
|
||||
" int a[2];\n"
|
||||
" f(a);\n"
|
||||
"}");
|
||||
ASSERT_EQUALS("[test.cpp:4]: (warning) The array 'a' is too small, the function 'f' expects a bigger one.\n", errout.str());
|
||||
TODO_ASSERT_EQUALS("[test.cpp:4]: (warning) The array 'a' is too small, the function 'f' expects a bigger one.\n", "", errout.str());
|
||||
|
||||
check("void f(int a[20]);\n"
|
||||
"void g() {\n"
|
||||
|
|
Loading…
Reference in New Issue