synthetic test: renamed tests. tweak report.

This commit is contained in:
Daniel Marjamäki 2016-11-07 08:48:38 +01:00
parent ac7b351d1e
commit ea087e6188
2 changed files with 5 additions and 5 deletions

View File

@ -2,10 +2,10 @@
int TestData[100]; int TestData[100];
void function_par_not_dependant(int par) { void par_not_dependant(int par) {
TestData[par] = 0; // BUG TestData[par] = 0; // BUG
} }
void function_par_dependant(int x, int y) { void par_dependant(int x, int y) {
if (x < 10) if (x < 10)
TestData[y] = 0; // BUG TestData[y] = 0; // BUG
} }
@ -15,7 +15,7 @@ void call(int x) {
} }
int getLargeIndex() { return 1000; } int getLargeIndex() { return 1000; }
void test_function_return() { void return_value() {
TestData[getLargeIndex()] = 0; // BUG TestData[getLargeIndex()] = 0; // BUG
} }

View File

@ -26,8 +26,8 @@ def parsefile(filename):
for i in range(100): for i in range(100):
spaces = spaces + ' ' spaces = spaces + ' '
s = filename + spaces s = filename + spaces
s = s[:16] + functionName + spaces s = s[:15] + str(linenr) + spaces
s = s[:48] + str(linenr) + spaces s = s[:20] + functionName + spaces
s = s[:50] s = s[:50]
if hasresult('cppcheck.txt', '[' + filename + ':' + str(linenr) + ']'): if hasresult('cppcheck.txt', '[' + filename + ':' + str(linenr) + ']'):
s = s + ' X' s = s + ' X'