]> git.proxmox.com Git - mirror_qemu.git/commit - tests/ivshmem-test.c
test: execute g_test_run when tests are skipped
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 29 Nov 2018 17:45:30 +0000 (18:45 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 11 Jan 2019 12:57:25 +0000 (13:57 +0100)
commit4848cb3d9fd3f7a13a9ac5166b97a594dc67d2ab
tree5ecd1768a1221bb84138612014c806036410ffbb
parent4ac80866476cc84825f57d239d210effeddf7146
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>
tests/cdrom-test.c
tests/ivshmem-test.c
tests/migration-test.c
tests/test-crypto-pbkdf.c