mirror of
https://github.com/opnsense/src.git
synced 2026-07-16 12:33:07 -04:00
Don't assume that SIGINT and SIGQUIT are set to SIG_DFL at the start of the test. Instead, retrieve their current dispositions and verify that they are restored at the end of the test. MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D55709 (cherry picked from commit 48368f702423742b2a7dff7ad3191625e8bf26f0) system(3): Fix brain glitch in previous commit We were saving SIGINT twice instead of SIGINT and SIGQUIT. Also restore original order of operations (SIGINT then SIGQUIT), which matches the order in which they're discussed in the POSIX description of system(3). MFC after: 1 week Sponsored by: Klara, Inc. Fixes: 48368f702423 ("system(3): Address test robustness issue") (cherry picked from commit 863b5c137a98d29dc6964cba0e0c4fe2a8bebab8) |
||
|---|---|---|
| .. | ||
| dynthr_mod | ||
| libatexit | ||
| clearenv_test.c | ||
| cxa_atexit_test.c | ||
| cxa_thread_atexit_nothr_test.cc | ||
| cxa_thread_atexit_test.cc | ||
| dynthr_test.c | ||
| getenv_r_test.c | ||
| heapsort_test.c | ||
| libc_exit_test.c | ||
| Makefile | ||
| Makefile.depend | ||
| mergesort_test.c | ||
| qsort_b_test.c | ||
| qsort_bench.c | ||
| qsort_r_compat_test.c | ||
| qsort_r_test.c | ||
| qsort_s_test.c | ||
| qsort_test.c | ||
| set_constraint_handler_s_test.c | ||
| strfmon_test.c | ||
| system_test.c | ||
| test-sort.h | ||
| tsearch_test.c | ||