summaryrefslogtreecommitdiffstats
path: root/tests/threads/priority-donate-lower.ck
diff options
context:
space:
mode:
Diffstat (limited to 'tests/threads/priority-donate-lower.ck')
-rw-r--r--tests/threads/priority-donate-lower.ck16
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 -*-
2use strict;
3use warnings;
4use tests::tests;
5check_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
15EOF
16pass;