diff options
| author | manuel <manuel@mausz.at> | 2012-05-11 15:10:44 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2012-05-11 15:10:44 +0200 |
| commit | ac1525683728d7b3ab644e729e6658d435914d85 (patch) | |
| tree | abc1feac44b687e376d98233dc00a8cd295c32c7 /tests/threads/priority-donate-condvar.ck | |
| parent | 29adc36b906ae3be5afc577450136e11c12bc0a0 (diff) | |
| download | progos-ac1525683728d7b3ab644e729e6658d435914d85.tar.gz progos-ac1525683728d7b3ab644e729e6658d435914d85.tar.bz2 progos-ac1525683728d7b3ab644e729e6658d435914d85.zip | |
add new test for priority donation with conditions
Diffstat (limited to 'tests/threads/priority-donate-condvar.ck')
| -rw-r--r-- | tests/threads/priority-donate-condvar.ck | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/threads/priority-donate-condvar.ck b/tests/threads/priority-donate-condvar.ck new file mode 100644 index 0000000..3ffe51c --- /dev/null +++ b/tests/threads/priority-donate-condvar.ck | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | # -*- perl -*- | ||
| 2 | use strict; | ||
| 3 | use warnings; | ||
| 4 | use tests::tests; | ||
| 5 | check_expected ([<<'EOF']); | ||
| 6 | (priority-donate-condvar) begin | ||
| 7 | (priority-donate-condvar) Thread L acquired lock. | ||
| 8 | (priority-donate-condvar) Signaling... | ||
| 9 | (priority-donate-condvar) Thread L woke up. | ||
| 10 | (priority-donate-condvar) Thread H acquired lock. | ||
| 11 | (priority-donate-condvar) Signaling... | ||
| 12 | (priority-donate-condvar) Thread H finished. | ||
| 13 | (priority-donate-condvar) Thread M finished. | ||
| 14 | (priority-donate-condvar) Thread L finished. | ||
| 15 | (priority-donate-condvar) Main thread finished. | ||
| 16 | (priority-donate-condvar) end | ||
| 17 | EOF | ||
| 18 | pass; | ||
