File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,11 @@ proc test_signaling { batch full } {
123123 # Wait for job completion
124124 #
125125 wait_for_job -fail $job_id DONE
126+ wait_for_file -fail $file_out
127+ set output ""
128+ wait_for -fail {[regexp -all "Ending: " $output] == 4} {
129+ set output [run_command_output -fail "$bin_cat $file_out"]
130+ }
126131
127132 set expected_script_signaled 0
128133 set expected_parent_step_signaled 0
Original file line number Diff line number Diff line change @@ -56,5 +56,16 @@ int main(int argc, char *argv[])
5656 if (pid )
5757 wait (NULL );
5858
59+ if (pid )
60+ if (step )
61+ printf ("Ending: parent_step\n" );
62+ else
63+ printf ("Ending: parent_command\n" );
64+ else
65+ if (step )
66+ printf ("Ending: child_step\n" );
67+ else
68+ printf ("Ending: child_command\n" );
69+
5970 return 0 ;
6071}
You can’t perform that action at this time.
0 commit comments