diff mbox series

[PULL,v1,2/2] tests: tpm: Use g_test_message rather than fprintf

Message ID 20181115140949.3481699-3-stefanb@linux.vnet.ibm.com (mailing list archive)
State New, archived
Headers show
Series [PULL,v1,1/2] tpm: use loop iterator to set sts data field | expand

Commit Message

Stefan Berger Nov. 15, 2018, 2:09 p.m. UTC
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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/tests/tpm-tests.c b/tests/tpm-tests.c
index 93a5beba01..582ec0cfd4 100644
--- a/tests/tpm-tests.c
+++ b/tests/tpm-tests.c
@@ -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;
     }