Page MenuHomeFreeBSD

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

Authored by olivier on May 17 2022, 8:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 12, 1:35 AM
Unknown Object (File)
Nov 7 2024, 8:43 AM
Unknown Object (File)
Oct 19 2024, 5:22 PM
Unknown Object (File)
Oct 3 2024, 5:10 AM
Unknown Object (File)
Oct 1 2024, 11:03 AM
Unknown Object (File)
Oct 1 2024, 10:28 AM
Unknown Object (File)
Sep 28 2024, 12:26 AM
Unknown Object (File)
Sep 27 2024, 5:15 PM
Subscribers

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
Lint Not Applicable
Unit
Tests Not Applicable