提交 5e58b58c 编写于 作者: S Stefan Berger

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: NStefan Berger <stefanb@linux.ibm.com>
Reviewed-by: NThomas Huth <thuth@redhat.com>
上级 6a50bb98
...@@ -22,7 +22,7 @@ static bool ...@@ -22,7 +22,7 @@ static bool
tpm_test_swtpm_skip(void) tpm_test_swtpm_skip(void)
{ {
if (!tpm_util_swtpm_has_tpm2()) { 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; return true;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册