diff options
Diffstat (limited to 'pintos-progos/tests/threads/mlfqs-block.ck')
| -rw-r--r-- | pintos-progos/tests/threads/mlfqs-block.ck | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/pintos-progos/tests/threads/mlfqs-block.ck b/pintos-progos/tests/threads/mlfqs-block.ck new file mode 100644 index 0000000..8833a3a --- /dev/null +++ b/pintos-progos/tests/threads/mlfqs-block.ck | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | # -*- perl -*- | ||
| 2 | use strict; | ||
| 3 | use warnings; | ||
| 4 | use tests::tests; | ||
| 5 | check_expected ([<<'EOF']); | ||
| 6 | (mlfqs-block) begin | ||
| 7 | (mlfqs-block) Main thread acquiring lock. | ||
| 8 | (mlfqs-block) Main thread creating block thread, sleeping 25 seconds... | ||
| 9 | (mlfqs-block) Block thread spinning for 20 seconds... | ||
| 10 | (mlfqs-block) Block thread acquiring lock... | ||
| 11 | (mlfqs-block) Main thread spinning for 5 seconds... | ||
| 12 | (mlfqs-block) Main thread releasing lock. | ||
| 13 | (mlfqs-block) ...got it. | ||
| 14 | (mlfqs-block) Block thread should have already acquired lock. | ||
| 15 | (mlfqs-block) end | ||
| 16 | EOF | ||
| 17 | pass; | ||
