Page MenuHomeFreeBSD

Prevent tests/sys/kern/sigwait to run parrallel
ClosedPublic

Authored by olivier on May 17 2022, 8:54 PM.

Details

Summary

The test "sigwait:test_sig_discard_ign_true" and "sigwait:test_sig_discard_ign_false" could not run in parrallel.

Test Plan

Without this patch:

# echo "parallelism=8" >> /etc/kyua/kyua.conf
# cd /usr/tests/
# kyua test sys/kern/sigwait
sys/kern/sigwait:test_sigtimedwait_einval  ->  passed  [0.005s]
sys/kern/sigwait:test_sigtimedwait_timeout_eagain1  ->  passed  [0.002s]
sys/kern/sigwait:test_sigtimedwait_timeout_eagain2  ->  passed  [0.003s]
sys/kern/sigwait:test_sigtimedwait_timeout_eagain0  ->  passed  [0.006s]
sys/kern/sigwait:test_wait_dequeue_sigchld_false  ->  passed  [0.003s]
sys/kern/sigwait:test_sigtimedwait_large_timeout_eintr  ->  passed  [0.108s]
sys/kern/sigwait:test_sigtimedwait_infinity  ->  passed  [0.110s]
sys/kern/sigwait:test_sigwaitinfo_eintr  ->  passed  [0.109s]
sys/kern/sigwait:test_sigwait_eintr  ->  passed  [0.429s]
sys/kern/sigwait:test_sigtimedwait_timeout_eagain3  ->  passed  [0.532s]
sys/kern/sigwait:test_sig_discard_ign_true  ->  passed  [1.065s]
sys/kern/sigwait:test_sig_discard_ign_false  ->  failed: /usr/src/tests/sys/kern/sigwait.c:373: SIGUSR2 != rv: sigtimedwait() ign=off should return SIGUSR2, rv -1 errno 35  [1.067s]
sys/kern/sigwait:test_wait_dequeue_sigchld_true  ->  passed  [2.130s]

Results file id is usr_tests.20220517-205137-616025
Results saved to /root/.kyua/store/results.usr_tests.20220517-205137-616025.db

12/13 passed (1 failed)

With this patch:

# kyua test sys/kern/sigwait
sys/kern/sigwait:test_sig_discard_ign_false  ->  passed  [0.110s]
sys/kern/sigwait:test_sig_discard_ign_true  ->  passed  [1.065s]
sys/kern/sigwait:test_sigtimedwait_einval  ->  passed  [0.001s]
sys/kern/sigwait:test_sigtimedwait_infinity  ->  passed  [0.108s]
sys/kern/sigwait:test_sigtimedwait_large_timeout_eintr  ->  passed  [0.109s]
sys/kern/sigwait:test_sigtimedwait_timeout_eagain0  ->  passed  [0.001s]
sys/kern/sigwait:test_sigtimedwait_timeout_eagain1  ->  passed  [0.001s]
sys/kern/sigwait:test_sigtimedwait_timeout_eagain2  ->  passed  [0.001s]
sys/kern/sigwait:test_sigtimedwait_timeout_eagain3  ->  passed  [0.504s]
sys/kern/sigwait:test_sigwait_eintr  ->  passed  [0.427s]
sys/kern/sigwait:test_sigwaitinfo_eintr  ->  passed  [0.108s]
sys/kern/sigwait:test_wait_dequeue_sigchld_false  ->  passed  [0.002s]
sys/kern/sigwait:test_wait_dequeue_sigchld_true  ->  passed  [2.124s]

Results file id is usr_tests.20220517-205231-703689
Results saved to /root/.kyua/store/results.usr_tests.20220517-205231-703689.db

13/13 passed (0 failed)

Diff Detail

Repository
rG FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.