Fixed testrunner

This commit is contained in:
Daniel Marjamäki 2020-09-29 17:43:53 +02:00
parent 67b1698752
commit fe2717fa37
1 changed files with 0 additions and 10 deletions

View File

@ -1246,16 +1246,6 @@ private:
" if (currtime > t) {}\n"
" }\n"
"}", "test.c");
ASSERT_EQUALS("", errout.str());
check("void f() {\n"
" time_t currtime;\n"
" if (a) {\n"
" int x = 123;\n"
" currtime = time(&dummy);\n"
" if (currtime > t) {}\n"
" }\n"
"}", "test.c");
ASSERT_EQUALS("[test.c:2]: (style) The scope of the variable 'currtime' can be reduced.\n", errout.str());
}