Skip to content

Commit

Permalink
Fix waiting for the shell on BSD
Browse files Browse the repository at this point in the history
  • Loading branch information
tokenrove committed Oct 17, 2017
1 parent 13070e4 commit 4299c6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions helpers/harness.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ proc setup_execution_environment {} {
}

proc wait_for_exit {} {
expect eof; # seems to be needed for buffering issues on BSD
foreach {pid spawn_id is_os_error code} [wait] break
if {0 == $is_os_error} { return $code }
not_ok
Expand Down

0 comments on commit 4299c6d

Please sign in to comment.