commit 1927e40fd092582e53e114aea7b210950175a0cb
parent 922506105e18d93d82328f8affb2ea49b5a55fd5
Author: James Prestwood <james.prestwood@linux.intel.com>
Date: Thu, 17 Jan 2019 13:42:00 -0800
test-runner: fix garbage output on test start
I missed this on a previous commit fixing the same issue with printing
the test results. This fixes garbage output on lines in between test
runs.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/tools/test-runner.c b/tools/test-runner.c
@@ -1635,6 +1635,7 @@ static void set_config_cycle_info(const char *config_dir_path,
struct test_stats *test_stats;
memset(sep_line, '_', sizeof(sep_line) - 1);
+ sep_line[sizeof(sep_line) - 1] = '\0';
config_name_ptr = strrchr(config_dir_path, '/');
config_name_ptr++;