diff options
Diffstat (limited to 'tests/threads/priority-donate-chain.ck')
| -rw-r--r-- | tests/threads/priority-donate-chain.ck | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/tests/threads/priority-donate-chain.ck b/tests/threads/priority-donate-chain.ck new file mode 100644 index 0000000..213e649 --- /dev/null +++ b/tests/threads/priority-donate-chain.ck | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | # -*- perl -*- | ||
| 2 | use strict; | ||
| 3 | use warnings; | ||
| 4 | use tests::tests; | ||
| 5 | check_expected ([<<'EOF']); | ||
| 6 | (priority-donate-chain) begin | ||
| 7 | (priority-donate-chain) main got lock. | ||
| 8 | (priority-donate-chain) main should have priority 3. Actual priority: 3. | ||
| 9 | (priority-donate-chain) main should have priority 6. Actual priority: 6. | ||
| 10 | (priority-donate-chain) main should have priority 9. Actual priority: 9. | ||
| 11 | (priority-donate-chain) main should have priority 12. Actual priority: 12. | ||
| 12 | (priority-donate-chain) main should have priority 15. Actual priority: 15. | ||
| 13 | (priority-donate-chain) main should have priority 18. Actual priority: 18. | ||
| 14 | (priority-donate-chain) main should have priority 21. Actual priority: 21. | ||
| 15 | (priority-donate-chain) thread 1 got lock | ||
| 16 | (priority-donate-chain) thread 1 should have priority 21. Actual priority: 21 | ||
| 17 | (priority-donate-chain) thread 2 got lock | ||
| 18 | (priority-donate-chain) thread 2 should have priority 21. Actual priority: 21 | ||
| 19 | (priority-donate-chain) thread 3 got lock | ||
| 20 | (priority-donate-chain) thread 3 should have priority 21. Actual priority: 21 | ||
| 21 | (priority-donate-chain) thread 4 got lock | ||
| 22 | (priority-donate-chain) thread 4 should have priority 21. Actual priority: 21 | ||
| 23 | (priority-donate-chain) thread 5 got lock | ||
| 24 | (priority-donate-chain) thread 5 should have priority 21. Actual priority: 21 | ||
| 25 | (priority-donate-chain) thread 6 got lock | ||
| 26 | (priority-donate-chain) thread 6 should have priority 21. Actual priority: 21 | ||
| 27 | (priority-donate-chain) thread 7 got lock | ||
| 28 | (priority-donate-chain) thread 7 should have priority 21. Actual priority: 21 | ||
| 29 | (priority-donate-chain) thread 7 finishing with priority 21. | ||
| 30 | (priority-donate-chain) interloper 7 finished. | ||
| 31 | (priority-donate-chain) thread 6 finishing with priority 18. | ||
| 32 | (priority-donate-chain) interloper 6 finished. | ||
| 33 | (priority-donate-chain) thread 5 finishing with priority 15. | ||
| 34 | (priority-donate-chain) interloper 5 finished. | ||
| 35 | (priority-donate-chain) thread 4 finishing with priority 12. | ||
| 36 | (priority-donate-chain) interloper 4 finished. | ||
| 37 | (priority-donate-chain) thread 3 finishing with priority 9. | ||
| 38 | (priority-donate-chain) interloper 3 finished. | ||
| 39 | (priority-donate-chain) thread 2 finishing with priority 6. | ||
| 40 | (priority-donate-chain) interloper 2 finished. | ||
| 41 | (priority-donate-chain) thread 1 finishing with priority 3. | ||
| 42 | (priority-donate-chain) interloper 1 finished. | ||
| 43 | (priority-donate-chain) main finishing with priority 0. | ||
| 44 | (priority-donate-chain) end | ||
| 45 | EOF | ||
| 46 | pass; | ||
