Skip to content
Snippets Groups Projects
Commit b3183a13 authored by Don Lipari's avatar Don Lipari
Browse files

Fixed test17.7

parent af76ab80
No related branches found
No related tags found
No related merge requests found
...@@ -39,7 +39,7 @@ set exit_code 0 ...@@ -39,7 +39,7 @@ set exit_code 0
set file_err "test$test_id.error" set file_err "test$test_id.error"
set file_in "test$test_id.input" set file_in "test$test_id.input"
set file_out "$cwd/test$test_id.output" set file_out "$cwd/test$test_id.output"
set tmp_dir "/tmp" set tmp_dir "[exec $bin_printenv HOME]"
print_header $test_id print_header $test_id
...@@ -47,8 +47,8 @@ print_header $test_id ...@@ -47,8 +47,8 @@ print_header $test_id
# Delete left-over stdin/out/err files # Delete left-over stdin/out/err files
# Build stdin file # Build stdin file
# #
exec $bin_rm -f $file_in $file_out $file_err exec $bin_rm -f $file_in $file_out $tmp_dir/$file_err
if {[file exists /tmp/$file_err]} { if {[file exists $tmp_dir/$file_err]} {
send_user "\nWARNING: can not delete /tmp/$file_err to run test\n" send_user "\nWARNING: can not delete /tmp/$file_err to run test\n"
set random 0 set random 0
spawn $bin_date +%N spawn $bin_date +%N
...@@ -128,7 +128,7 @@ if [file exists $file_err] { ...@@ -128,7 +128,7 @@ if [file exists $file_err] {
} }
if {$exit_code == 0} { if {$exit_code == 0} {
exec $bin_rm -f $file_in $file_out $file_err exec $bin_rm -f $file_in $file_out $tmp_dir/$file_err
send_user "\nSUCCESS\n" send_user "\nSUCCESS\n"
} }
exit $exit_code exit $exit_code
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