diff --git a/testsuite/expect/test1.89 b/testsuite/expect/test1.89 index dc712e675dda0e9162f18398a32d1aee448a5793..13c6c97fdc0e23da356216dc33fd42b1ea1a64bb 100755 --- a/testsuite/expect/test1.89 +++ b/testsuite/expect/test1.89 @@ -127,12 +127,15 @@ expect { # # Reading a second prompt is required by some versions of Expect # -if { 0 } { - expect { - -re $prompt { - } +set timeout 1 +expect { + -re $prompt { + exp_continue + } + timeout { } } +set timeout 30 # # Run a job step to get allocated processor count and affinity diff --git a/testsuite/expect/test1.90 b/testsuite/expect/test1.90 index e0622c92c40135ae2e31f2145d6088340bd3615b..bc10c07f57237f62319891142c75178b15c8fd16 100755 --- a/testsuite/expect/test1.90 +++ b/testsuite/expect/test1.90 @@ -136,6 +136,19 @@ expect { } } +# +# Reading a second prompt is required by some versions of Expect +# +set timeout 1 +expect { + -re $prompt { + exp_continue + } + timeout { + } +} +set timeout 30 + # # Run a job step to get allocated processor count and affinity #