tests/tpm-tests: Use g_test_skip() to mark skipped tests
PATCH 1/1 tests/tpm-tests: Use g_test_skip() to mark skipped tests
Since we do not use gtester anymore (which had a bug here), we can now use g_test_skip() to mark skipped tests.
Signed-off-by Thomas Huth <[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 ()) { -g_test_message ("swtpm not in PATH or missing --tpm2 support" ); +g_test_skip ("swtpm not in PATH or missing --tpm2 support" );return true; }
Signature · 1 line
2.21.0
Quoted 5 lines · Thomas Huth
Since we do not use gtester anymore (which had a bug here), we can now use
g_test_skip()to mark skipped tests.Signed-off-by Thomas Huth <[email protected]>
Reviewed-by Marc-André Lureau <[email protected]>
Quoted 21 lines
--- tests/tpm-tests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tests/tpm-tests.c +1
-2@@ -22,7 +22,7 @@ static booltpm_test_swtpm_skip (void) {if (!tpm_util_swtpm_has_tpm2 ()) { -g_test_message ("swtpm not in PATH or missing --tpm2 support" ); +g_test_skip ("swtpm not in PATH or missing --tpm2 support" );return true; } --2.21.0
Signature · 1 line
Marc-André Lureau
Quoted 14 lines · Thomas Huth
Since we do not use gtester anymore (which had a bug here), we can now use
g_test_skip()to mark skipped tests.Signed-off-by Thomas Huth <[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 28
Quoted 8 lines
tests/tpm-tests.c +1
-1@@ -22,7 +22,7 @@ static booltpm_test_swtpm_skip (void) {if (!tpm_util_swtpm_has_tpm2 ()) { -g_test_message ("swtpm not in PATH or missing --tpm2 support" ); +g_test_skip ("swtpm not in PATH or missing --tpm2 support" );return true; }
Reviewed-by Philippe Mathieu-Daudé <[email protected]>
Quoted 4 lines · Thomas Huth
Since we do not use gtester anymore (which had a bug here), we can now use
g_test_skip()to mark skipped tests.Signed-off-by Thomas Huth <[email protected]>
Reviewed-by Stefan Berger <[email protected]>
Quoted 17 lines
--- 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 ()) { -g_test_message ("swtpm not in PATH or missing --tpm2 support" ); +g_test_skip ("swtpm not in PATH or missing --tpm2 support" );return true; }