diff options
Diffstat (limited to 'tests/threads/priority-donate-lower.ck')
| -rw-r--r-- | tests/threads/priority-donate-lower.ck | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/threads/priority-donate-lower.ck b/tests/threads/priority-donate-lower.ck new file mode 100644 index 0000000..c9bb61b --- /dev/null +++ b/tests/threads/priority-donate-lower.ck | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | # -*- perl -*- | ||
| 2 | use strict; | ||
| 3 | use warnings; | ||
| 4 | use tests::tests; | ||
| 5 | check_expected ([<<'EOF']); | ||
| 6 | (priority-donate-lower) begin | ||
| 7 | (priority-donate-lower) Main thread should have priority 41. Actual priority: 41. | ||
| 8 | (priority-donate-lower) Lowering base priority... | ||
| 9 | (priority-donate-lower) Main thread should have priority 41. Actual priority: 41. | ||
| 10 | (priority-donate-lower) acquire: got the lock | ||
| 11 | (priority-donate-lower) acquire: done | ||
| 12 | (priority-donate-lower) acquire must already have finished. | ||
| 13 | (priority-donate-lower) Main thread should have priority 21. Actual priority: 21. | ||
| 14 | (priority-donate-lower) end | ||
| 15 | EOF | ||
| 16 | pass; | ||
