fixed unit test that I broke by mistake

This commit is contained in:
Daniel Marjamäki 2014-03-25 21:45:25 +01:00
parent 8eeda150cf
commit 6da9cca4ab
1 changed files with 2 additions and 1 deletions

View File

@ -1885,7 +1885,8 @@ private:
" a[i] = 0;\n" " a[i] = 0;\n"
" }\n" " }\n"
"}"); "}");
ASSERT_EQUALS("[test.cpp:6]: (error) Buffer is accessed out of bounds: a\n", errout.str()); ASSERT_EQUALS("[test.cpp:6]: (error) Buffer is accessed out of bounds: a\n"
"[test.cpp:6]: (error) Array 'a[10]' accessed at index 19, which is out of bounds.\n", errout.str());
// Ticket #2385 - No false positive // Ticket #2385 - No false positive
check("void f() {\n" check("void f() {\n"