Commit 222d3b39 by Janis Johnson Committed by Janis Johnson

scandump.exp (scan-dump, [...]): Treat a missing dump file as unresolved and…

scandump.exp (scan-dump, [...]): Treat a missing dump file as unresolved and report the reason to the log file.

	* lib/scandump.exp (scan-dump, scan-dump-times, scan-dump-not,
	scan-dump-dem, scan-dump-dem-not): Treat a missing dump file as
	unresolved and report the reason to the log file.

From-SVN: r175224
parent b73b50c9
2011-06-20 Janis Johnson <janisjo@codesourcery.com> 2011-06-20 Janis Johnson <janisjo@codesourcery.com>
* lib/scandump.exp (scan-dump, scan-dump-times, scan-dump-not,
scan-dump-dem, scan-dump-dem-not): Treat a missing dump file as
unresolved and report the reason to the log file.
* lib/scanasm.exp (object-size): Move argument processing earlier * lib/scanasm.exp (object-size): Move argument processing earlier
to report errors before verifying that the file exists. Report to report errors before verifying that the file exists. Report
problems detected at runtime as unresolved instead of error and problems detected at runtime as unresolved instead of error and
......
...@@ -55,7 +55,8 @@ proc scan-dump { args } { ...@@ -55,7 +55,8 @@ proc scan-dump { args } {
set src [file tail [lindex $testcase 0]] set src [file tail [lindex $testcase 0]]
set output_file "[glob -nocomplain $src.[lindex $args 2]]" set output_file "[glob -nocomplain $src.[lindex $args 2]]"
if { $output_file == "" } { if { $output_file == "" } {
fail "$testname: dump file does not exist" verbose -log "$testcase: dump file does not exist"
unresolved "$testname"
return return
} }
...@@ -97,7 +98,8 @@ proc scan-dump-times { args } { ...@@ -97,7 +98,8 @@ proc scan-dump-times { args } {
set src [file tail [lindex $testcase 0]] set src [file tail [lindex $testcase 0]]
set output_file "[glob -nocomplain $src.[lindex $args 3]]" set output_file "[glob -nocomplain $src.[lindex $args 3]]"
if { $output_file == "" } { if { $output_file == "" } {
fail "$testname: dump file does not exist" verbose -log "$testcase: dump file does not exist"
unresolved "$testname"
return return
} }
...@@ -139,7 +141,8 @@ proc scan-dump-not { args } { ...@@ -139,7 +141,8 @@ proc scan-dump-not { args } {
set src [file tail [lindex $testcase 0]] set src [file tail [lindex $testcase 0]]
set output_file "[glob -nocomplain $src.[lindex $args 2]]" set output_file "[glob -nocomplain $src.[lindex $args 2]]"
if { $output_file == "" } { if { $output_file == "" } {
fail "$testname: dump file does not exist" verbose -log "$testcase: dump file does not exist"
unresolved "$testname"
return return
} }
...@@ -190,7 +193,8 @@ proc scan-dump-dem { args } { ...@@ -190,7 +193,8 @@ proc scan-dump-dem { args } {
set src [file tail [lindex $testcase 0]] set src [file tail [lindex $testcase 0]]
set output_file "[glob -nocomplain $src.[lindex $args 2]]" set output_file "[glob -nocomplain $src.[lindex $args 2]]"
if { $output_file == "" } { if { $output_file == "" } {
fail "$testname: dump file does not exist" verbose -log "$testcase: dump file does not exist"
unresolved "$testname"
return return
} }
...@@ -241,7 +245,8 @@ proc scan-dump-dem-not { args } { ...@@ -241,7 +245,8 @@ proc scan-dump-dem-not { args } {
set src [file tail [lindex $testcase 0]] set src [file tail [lindex $testcase 0]]
set output_file "[glob -nocomplain $src.[lindex $args 2]]" set output_file "[glob -nocomplain $src.[lindex $args 2]]"
if { $output_file == "" } { if { $output_file == "" } {
fail "$testname: dump file does not exist" verbose -log "$testcase: dump file does not exist"
unresolved "$testname"
return return
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment