diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2024-02-14 17:33:41 +0000 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2024-03-27 13:47:09 -0300 |
commit | 2e53eb923486704b7a0d6f3d81d1ee8ba672a56b (patch) | |
tree | c5aaa66e75287df3deee76b16b0347db8344965d /signal/tst-sigset2.c | |
parent | 96d1b9ac2321b565f340ba8f3674597141e3450d (diff) | |
download | glibc-2e53eb923486704b7a0d6f3d81d1ee8ba672a56b.tar.gz glibc-2e53eb923486704b7a0d6f3d81d1ee8ba672a56b.tar.xz glibc-2e53eb923486704b7a0d6f3d81d1ee8ba672a56b.zip |
signal: Avoid system signal disposition to interfere with tests
Both tst-sigset2 and tst-signal1 expectes that SIGINT disposition is set to SIG_DFL.
Diffstat (limited to 'signal/tst-sigset2.c')
-rw-r--r-- | signal/tst-sigset2.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/signal/tst-sigset2.c b/signal/tst-sigset2.c index 4eef653f95..c1d125e4cb 100644 --- a/signal/tst-sigset2.c +++ b/signal/tst-sigset2.c @@ -11,6 +11,8 @@ #include <sys/wait.h> #include <libc-diag.h> +#include <support/xsignal.h> + /* The sigset function is deprecated. */ DIAG_IGNORE_NEEDS_COMMENT (4.9, "-Wdeprecated-declarations"); @@ -148,6 +150,8 @@ returnTest3 (void) int main (int argc, char *argv[]) { + xsignal (TEST_SIG, SIG_DFL); + pid_t childPid; childPid = fork(); |