fixed unit test of dangerous functions
This commit is contained in:
parent
7c18ece65d
commit
0d8b74e538
|
@ -106,7 +106,7 @@ private:
|
||||||
" char *x;\n"
|
" char *x;\n"
|
||||||
" scanf(\"%s\", x);\n"
|
" scanf(\"%s\", x);\n"
|
||||||
"}\n");
|
"}\n");
|
||||||
ASSERT_EQUALS("[test.cpp:4]: (style) Found 'scanf'. You should use 'fgets' instead\n", errout.str());
|
ASSERT_EQUALS("", errout.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue