summaryrefslogtreecommitdiffstats
path: root/tests/threads/priority-preempt.ck
diff options
context:
space:
mode:
Diffstat (limited to 'tests/threads/priority-preempt.ck')
-rw-r--r--tests/threads/priority-preempt.ck16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/threads/priority-preempt.ck b/tests/threads/priority-preempt.ck
new file mode 100644
index 0000000..43a26ee
--- /dev/null
+++ b/tests/threads/priority-preempt.ck
@@ -0,0 +1,16 @@
1# -*- perl -*-
2use strict;
3use warnings;
4use tests::tests;
5check_expected ([<<'EOF']);
6(priority-preempt) begin
7(priority-preempt) Thread high-priority iteration 0
8(priority-preempt) Thread high-priority iteration 1
9(priority-preempt) Thread high-priority iteration 2
10(priority-preempt) Thread high-priority iteration 3
11(priority-preempt) Thread high-priority iteration 4
12(priority-preempt) Thread high-priority done!
13(priority-preempt) The high-priority thread should have already completed.
14(priority-preempt) end
15EOF
16pass;