aboutsummaryrefslogtreecommitdiff
path: root/tests/cdrom-test.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2018-11-29 18:45:30 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2019-01-11 13:57:25 +0100
commit4848cb3d9fd3f7a13a9ac5166b97a594dc67d2ab (patch)
tree5ecd1768a1221bb84138612014c806036410ffbb /tests/cdrom-test.c
parent4ac80866476cc84825f57d239d210effeddf7146 (diff)
test: execute g_test_run when tests are skipped
Sometimes a test's main() function recognizes that the environment does not support the test, and therefore exits. In this case, we still should run g_test_run() so that a TAP harness will print the test plan ("1..0") and the test will be marked as skipped. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <1543513531-1151-2-git-send-email-pbonzini@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tests/cdrom-test.c')
-rw-r--r--tests/cdrom-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/cdrom-test.c b/tests/cdrom-test.c
index 9b43dc9ab4..14bd981336 100644
--- a/tests/cdrom-test.c
+++ b/tests/cdrom-test.c
@@ -169,7 +169,7 @@ int main(int argc, char **argv)
if (exec_genisoimg(genisocheck)) {
/* genisoimage not available - so can't run tests */
- return 0;
+ return g_test_run();
}
ret = prepare_image(arch, isoimage);