From ea087e6188b4dd03cc0b5c40fe07b121ce95959c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 7 Nov 2016 08:48:38 +0100 Subject: [PATCH] synthetic test: renamed tests. tweak report. --- test/synthetic/functions.c | 6 +++--- test/synthetic/report.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/synthetic/functions.c b/test/synthetic/functions.c index 2138bf291..1d58e40ff 100644 --- a/test/synthetic/functions.c +++ b/test/synthetic/functions.c @@ -2,10 +2,10 @@ int TestData[100]; -void function_par_not_dependant(int par) { +void par_not_dependant(int par) { TestData[par] = 0; // BUG } -void function_par_dependant(int x, int y) { +void par_dependant(int x, int y) { if (x < 10) TestData[y] = 0; // BUG } @@ -15,7 +15,7 @@ void call(int x) { } int getLargeIndex() { return 1000; } -void test_function_return() { +void return_value() { TestData[getLargeIndex()] = 0; // BUG } diff --git a/test/synthetic/report.py b/test/synthetic/report.py index e63b5b81a..2674c5b2e 100755 --- a/test/synthetic/report.py +++ b/test/synthetic/report.py @@ -26,8 +26,8 @@ def parsefile(filename): for i in range(100): spaces = spaces + ' ' s = filename + spaces - s = s[:16] + functionName + spaces - s = s[:48] + str(linenr) + spaces + s = s[:15] + str(linenr) + spaces + s = s[:20] + functionName + spaces s = s[:50] if hasresult('cppcheck.txt', '[' + filename + ':' + str(linenr) + ']'): s = s + ' X'