]> git.proxmox.com Git - mirror_qemu.git/commitdiff
tests: tpm: Use g_test_message rather than fprintf
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Tue, 6 Nov 2018 14:08:40 +0000 (09:08 -0500)
committerStefan Berger <stefanb@linux.vnet.ibm.com>
Wed, 14 Nov 2018 21:12:24 +0000 (16:12 -0500)
Display a message during the test using g_test_message rather
than fprintf.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
tests/tpm-tests.c

index 93a5beba01654a48685b7abe600db87aadca1635..582ec0cfd4f767235397ea5f34b4207863014c55 100644 (file)
@@ -22,7 +22,7 @@ static bool
 tpm_test_swtpm_skip(void)
 {
     if (!tpm_util_swtpm_has_tpm2()) {
-        fprintf(stderr, "swtpm not in PATH or missing --tpm2 support; ");
+        g_test_message("swtpm not in PATH or missing --tpm2 support");
         return true;
     }