forked from lattera/glibc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nptl: Avoid expected SIGALRM in most tests [BZ #20432]
Before this change, several tests did not detect early deadlocks because they used SIGALRM as the expected signal, and they ran for the full default TIMEOUT seconds. This commit adds a new delayed_exit function to the test skeleton, along with several error-checking wrappers to pthread functions. Additional error checking is introduced into several tests.
- Loading branch information
1 parent
0ac8ee5
commit 7e625f7
Showing
15 changed files
with
293 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,45 @@ | ||
2016-08-26 Florian Weimer <[email protected]> | ||
|
||
[BZ #20432] | ||
Avoid expected SIGALRM signals. | ||
* test-skeleton.c (xpthread_sigmask, xpthread_mutex_lock) | ||
(xpthread_spin_lock, xpthread_cond_wait, xpthread_barrier_wait) | ||
(xpthread_create, xpthread_detach, xpthread_join) | ||
(delayed_exit_thread, delayed_exit): New functions. | ||
* nptl/tst-cond3 (EXPECTED_SIGNAL): Remove. | ||
(tf): Use xpthread_cond_wait. | ||
(do_test): Likewise. Replace alarm with delayed_exit. | ||
* nptl/tst-eintr1.c (EXPECTED_SIGNAL, TIMEOUT): Remove. | ||
(do_test): Call delayed_exit. Report failure. | ||
* nptl/tst-eintr2.c (EXPECTED_SIGNAL, TIMEOUT): Remove. | ||
(do_test): Call delayed_exit. | ||
* nptl/tst-eintr3.c (EXPECTED_SIGNAL, TIMEOUT): Remove. | ||
(do_test): Call delayed_exit. Use xpthread_join. Report error. | ||
* nptl/tst-eintr4.c (EXPECTED_SIGNAL, TIMEOUT): Remove. | ||
(do_test): Call delayed_exit. Use xpthread_barrier_wait. Report | ||
error. | ||
* nptl/tst-eintr5.c (EXPECTED_SIGNAL, TIMEOUT): Remove. | ||
(do_test): Call delayed_exit. Use xpthread_cond_wait. Report | ||
error. | ||
* nptl/tst-exit2.c (EXPECTED_SIGNAL): Remove. | ||
(do_test): Call delayed_exit. | ||
* nptl/tst-exit3.c (EXPECTED_SIGNAL): Remove. | ||
(do_test): Call delayed_exit. | ||
* nptl/tst-mutex6.c (EXPECTED_SIGNAL): Remove. | ||
(do_test): Call delayed_exit instead of alarm. Use | ||
xpthread_mutex_lock. | ||
* nptl/tst-rwlock5.c (EXPECTED_SIGNAL): Remove. | ||
(do_test): Call delayed_exit instead of alarm. Use | ||
xpthread_mutex_lock. | ||
* nptl/tst-sem2.c (EXPECTED_SIGNAL): Remove. | ||
(do_test): Call delayed_exit instead of alarm. | ||
* nptl/tst-spin3.c (EXPECTED_SIGNAL): Remove. | ||
(do_test): Call delayed_exit instead of alarm. Use | ||
xpthread_spin_lock. | ||
* nptl/tst-stdio1.c (EXPECTED_SIGNAL): Remove. | ||
(do_test): Call delayed_exit instead of alarm. Use | ||
xpthread_join. | ||
|
||
2016-08-26 H.J. Lu <[email protected]> | ||
|
||
* sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Don't | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.