diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2025-03-22 18:00:25 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2025-03-22 18:00:25 +0100 |
commit | 0737819efdd0bae112d16d874cac7e747e43cd08 (patch) | |
tree | 98a9ac84f7f347ae530c14852c68870682f3d04c /tests/test-sigprocmask.c | |
parent | 163a663518f33bab48b28431972e580b366b4d49 (diff) | |
parent | e670957a8693f860cf7d77fed4ce6b4b056a8083 (diff) |
Merge branch 'release/debian/1.3-1'debian/1.3-1
Diffstat (limited to 'tests/test-sigprocmask.c')
-rw-r--r-- | tests/test-sigprocmask.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/test-sigprocmask.c b/tests/test-sigprocmask.c index c712d77d..b9cdb6b0 100644 --- a/tests/test-sigprocmask.c +++ b/tests/test-sigprocmask.c @@ -29,6 +29,7 @@ SIGNATURE_CHECK (sigprocmask, int, (int, const sigset_t *, sigset_t *)); #include <stdlib.h> #include <unistd.h> +#include "virtualbox.h" #include "macros.h" #if !(defined _WIN32 && !defined __CYGWIN__) @@ -44,6 +45,16 @@ sigint_handler (_GL_UNUSED int sig) int main () { + /* This test occasionally fails on Linux (glibc or musl libc), in a + VirtualBox VM with paravirtualization = Default or KVM, with ≥ 2 CPUs. + Skip the test in this situation. */ + if (is_running_under_virtualbox_kvm () && num_cpus () > 1) + { + fputs ("Skipping test: avoiding VirtualBox bug with KVM paravirtualization\n", + stderr); + return 77; + } + sigset_t set; intmax_t pid = getpid (); char command[80]; @@ -79,7 +90,7 @@ main () before the call to sigprocmask() returns." */ ASSERT (sigint_occurred == 1); - return 0; + return test_exit_status; } #else |