tests: tpm: Use g_test_message rather than fprintf
PATCH 1/1 tests: tpm: Use g_test_message rather than fprintf
Display a message during the test using g_test_message rather than fprintf.
Signed-off-by Stefan Berger <[email protected]>
--- tests/tpm-tests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/tpm-tests.c +1 -1
@@ -22,7 +22,7 @@ static booltpm_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; }
Signature · 1 line
2.17.1
Quoted 13 lines · Stefan Berger
Display a message during the test using
g_test_messagerather than fprintf.Signed-off-by Stefan Berger <[email protected]>--- tests/tpm-tests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tests/tpm-tests.c +0
-0
tests/tpm-tests.c static bool · line 27
Quoted 7 lines
tests/tpm-tests.c +1
-1@@ -22,7 +22,7 @@ static booltpm_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; }
I think I'd rather remove the semicolon at the end now. Anyway:
Reviewed-by Thomas Huth <[email protected]>