Skip to content
Snippets Groups Projects
Commit 60659648 authored by Moe Jette's avatar Moe Jette
Browse files

make test more comprehensive

parent 2605bd7e
No related branches found
No related tags found
No related merge requests found
...@@ -38,6 +38,7 @@ set test_id "1.32" ...@@ -38,6 +38,7 @@ set test_id "1.32"
set exit_code 0 set exit_code 0
set file_prog "test$test_id.prog" set file_prog "test$test_id.prog"
set matches 0 set matches 0
set fini_cnt 0
set usr1cnt 0 set usr1cnt 0
set usr2cnt 0 set usr2cnt 0
...@@ -100,6 +101,10 @@ expect { ...@@ -100,6 +101,10 @@ expect {
send_user "\nDon't worry about the error...\n" send_user "\nDon't worry about the error...\n"
exp_continue exp_continue
} }
-re "FINI" {
incr fini_cnt
exp_continue
}
timeout { timeout {
send_user "\nFAILURE: srun not responding\n" send_user "\nFAILURE: srun not responding\n"
slow_kill $srun_pid slow_kill $srun_pid
...@@ -122,6 +127,11 @@ if {$usr2cnt != 1} { ...@@ -122,6 +127,11 @@ if {$usr2cnt != 1} {
send_user "\nFAILURE: $file_prog received $usr2cnt SIGUSR2 (not 1)\n" send_user "\nFAILURE: $file_prog received $usr2cnt SIGUSR2 (not 1)\n"
set exit_code 1 set exit_code 1
} }
if {$fini_cnt != 1} {
send_user "\nFAILURE: srun failed to terminate properly\n"
set exit_code 1
}
# #
# Post-processing # Post-processing
......
...@@ -77,5 +77,6 @@ main (int argc, char **argv) ...@@ -77,5 +77,6 @@ main (int argc, char **argv)
sleep(1); sleep(1);
} }
printf("FINI\n");
exit(0); exit(0);
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment