diff options
author | Marc-André Lureau | 2020-08-28 13:07:30 +0200 |
---|---|---|
committer | Paolo Bonzini | 2020-09-08 11:43:16 +0200 |
commit | 24441f912e67233d9c52ce6b459ed75de2484525 (patch) | |
tree | f4a37b79f540e6dceec125dbe4246974fd1d8e6b /tests/benchmark-crypto-hash.c | |
parent | meson: convert atomic*-bench (diff) | |
download | qemu-24441f912e67233d9c52ce6b459ed75de2484525.tar.gz qemu-24441f912e67233d9c52ce6b459ed75de2484525.tar.xz qemu-24441f912e67233d9c52ce6b459ed75de2484525.zip |
tests: do not print benchmark output to stdout
As this makes the TAP output invalid. Use g_test_message().
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20200828110734.1638685-13-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tests/benchmark-crypto-hash.c')
-rw-r--r-- | tests/benchmark-crypto-hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/benchmark-crypto-hash.c b/tests/benchmark-crypto-hash.c index d16837d00a..598111e75a 100644 --- a/tests/benchmark-crypto-hash.c +++ b/tests/benchmark-crypto-hash.c @@ -48,7 +48,7 @@ static void test_hash_speed(const void *opaque) } g_test_timer_elapsed(); - g_print("%.2f MB/sec ", (double)total / MiB / g_test_timer_last()); + g_test_message("%.2f MB/sec ", (double)total / MiB / g_test_timer_last()); g_free(out); g_free(in); |