From c053065e916e5b9569dc2b5e9e9c3c98667a6ffa Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Fri, 11 May 2018 16:58:55 +0200 Subject: [PATCH] Fix wait tests This was probably the result of a botched merge. Unfortunately these tests take quite a while, so maybe we should remove some? --- tests/wait.expect | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/wait.expect b/tests/wait.expect index 9042d5b62..2ca4c0478 100644 --- a/tests/wait.expect +++ b/tests/wait.expect @@ -56,9 +56,10 @@ set error_msg "wait with -n option: Fail" send_line "sleep 3 &; sleep 1 &; sleep 2 &" expect_prompt send_line "wait -n" -expect_prompt "Job 3, 'sleep 1 &' has ended" {} unmatched { puts stderr $error_msg } +expect_prompt "Job 2, 'sleep 1 &' has ended" {} unmatched { puts stderr $error_msg } send_line "wait --any" -expect_prompt "Job 4, 'sleep 2 &' has ended" {} unmatched { puts stderr $error_msg } +expect_prompt "Job 3, 'sleep 2 &' has ended" {} unmatched { puts stderr $error_msg } +send_line "wait -n" expect_prompt "Job 1, 'sleep 3 &' has ended" {} unmatched { puts stderr $error_msg } send_line "jobs" expect_prompt "jobs: There are no jobs" {} unmatched { puts stderr $error_msg }