From 65a59bde57d4e5ff7b6b4e7177cf6d28e3e96b59 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 5 Mar 2024 10:46:21 +0100 Subject: [PATCH] tests/performance: print result in unique line Previously, the result lines are not unique, for example Running test simple-construction Millions of constructed objects per second: 27.629 Running test simple-construction1 Millions of constructed objects per second: 151.879 ... That is undesirable, because we might want to parse the test results with a script, and that's easier when the line is unique. Change to: Running test simple-construction simple-construction: Millions of constructed objects per second: 27.629 Running test simple-construction1 simple-construction1: Millions of constructed objects per second: 151.879 ... --- gobject/tests/performance/performance.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gobject/tests/performance/performance.c b/gobject/tests/performance/performance.c index e8ad3915e..6e0570b61 100644 --- a/gobject/tests/performance/performance.c +++ b/gobject/tests/performance/performance.c @@ -159,6 +159,7 @@ run_test (PerformanceTest *test) } /* Print the results */ + g_print ("%s: ", test->name); test->print_result (test, data, min_elapsed); /* Tear down */