summaryrefslogtreecommitdiffstats
path: root/tests/benchmark-crypto-hmac.c
diff options
context:
space:
mode:
authorMarc-André Lureau2020-08-28 13:07:30 +0200
committerPaolo Bonzini2020-09-08 11:43:16 +0200
commit24441f912e67233d9c52ce6b459ed75de2484525 (patch)
treef4a37b79f540e6dceec125dbe4246974fd1d8e6b /tests/benchmark-crypto-hmac.c
parentmeson: convert atomic*-bench (diff)
downloadqemu-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-hmac.c')
-rw-r--r--tests/benchmark-crypto-hmac.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/benchmark-crypto-hmac.c b/tests/benchmark-crypto-hmac.c
index f1dfa240cb..f9fa22df95 100644
--- a/tests/benchmark-crypto-hmac.c
+++ b/tests/benchmark-crypto-hmac.c
@@ -55,10 +55,10 @@ static void test_hmac_speed(const void *opaque)
} while (g_test_timer_elapsed() < 5.0);
total /= MiB;
- g_print("hmac(sha256): ");
- g_print("Testing chunk_size %zu bytes ", chunk_size);
- g_print("done: %.2f MB in %.2f secs: ", total, g_test_timer_last());
- g_print("%.2f MB/sec\n", total / g_test_timer_last());
+ g_test_message("hmac(sha256): ");
+ g_test_message("Testing chunk_size %zu bytes ", chunk_size);
+ g_test_message("done: %.2f MB in %.2f secs: ", total, g_test_timer_last());
+ g_test_message("%.2f MB/sec\n", total / g_test_timer_last());
g_free(out);
g_free(in);