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 <stefanb@linux.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
Stefan Berger 2018-11-06 09:08:40 -05:00
parent 6a50bb98f2
commit 5e58b58c47
1 changed files with 1 additions and 1 deletions

View 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;
}