1.0.37.20: Make stress test for SB-CONCURRENCY:MAILBOX more robust.
authorTobias C. Rittweiler <trittweiler@users.sourceforge.net>
Wed, 31 Mar 2010 19:35:11 +0000 (19:35 +0000)
committerTobias C. Rittweiler <trittweiler@users.sourceforge.net>
Wed, 31 Mar 2010 19:35:11 +0000 (19:35 +0000)
commit7be549a3b25b8808defdea3a5e213b1747e236a5
tree65414656624c6cf4a30e2317d63e0127d07fa4e3
parent98b538e06db617049c57fbe69e9ddefa66aee985
1.0.37.20: Make stress test for SB-CONCURRENCY:MAILBOX more robust.

  * The MAILBOX.INTERRUPT-SAFETY.1 test kills threads randomly while
    stress-testing a mailbox--in the test we made sure that at least
    one receiver remains to properly finish the test; however, some of
    the receiver threads were written with a specific upper bound of
    runs. In the unlikely event that only those receivers remain,
    there was a chance that they could not properly finish the test.

  * We rewrite the receivers to do their work until they receive a
    special FIN token as message. After all senders are done, we make
    sure to send enough FIN for all receivers to shut down.

  * Also gather some more information during the test so in case of
    failure we can gain understanding on what went wrong.
contrib/sb-concurrency/tests/test-mailbox.lisp
contrib/sb-concurrency/tests/test-utils.lisp
version.lisp-expr