Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2005-07-18 23:07:49 +0400
committerJeff Johnston <jjohnstn@redhat.com>2005-07-18 23:07:49 +0400
commitb776efc599df86939c11d726e513eef45e8b1580 (patch)
tree2f6b2dad3d2d963a7d4e024d9b4956efb14b56a5 /newlib/testsuite
parent650c30276a0192dbc88b8f05c8f8fa6a2f444402 (diff)
2005-07-18 Joseph S. Myers <joseph@codesourcery.com>
* testsuite/lib/checkoutput.exp (newlib_check_output): Use test names after PASS and FAIL which do not depend on source directory name or on whether test passed or failed. * testsuite/lib/passfail.exp (newlib_pass_fail): Likewise.
Diffstat (limited to 'newlib/testsuite')
-rw-r--r--newlib/testsuite/lib/checkoutput.exp9
-rw-r--r--newlib/testsuite/lib/passfail.exp6
2 files changed, 10 insertions, 5 deletions
diff --git a/newlib/testsuite/lib/checkoutput.exp b/newlib/testsuite/lib/checkoutput.exp
index 4bf7438af..146f87b00 100644
--- a/newlib/testsuite/lib/checkoutput.exp
+++ b/newlib/testsuite/lib/checkoutput.exp
@@ -17,9 +17,11 @@ proc newlib_check_output { srcfile expectlist } {
set comp_output [newlib_target_compile "$srcfullname" "$test_driver" "executable" ""]
if { $comp_output != "" } {
- fail "Failed to compile $srcfile.\n"
+ fail "$subdir/$srcfile compilation"
+ unresolved "$subdir/$srcfile output"
return
}
+ pass "$subdir/$srcfile compilation"
set result [newlib_load $test_driver ""]
set status [lindex $result 0]
@@ -30,11 +32,12 @@ proc newlib_check_output { srcfile expectlist } {
foreach { expectedval } $expectlist {
set gotval [string trim [lindex $output_lines 0] "\r"]
if { ! [string match $expectedval $gotval] } {
- fail "$srcfile: Expected: $expectedval Got: $gotval "
+ verbose -log "$subdir/$srcfile: Expected: $expectedval Got: $gotval "
+ fail "$subdir/$srcfile output"
return
}
set output_lines [lrange $output_lines 1 end]
}
- pass $srcfile
+ pass "$subdir/$srcfile output"
}
diff --git a/newlib/testsuite/lib/passfail.exp b/newlib/testsuite/lib/passfail.exp
index 3532c8b99..5e7eb21e7 100644
--- a/newlib/testsuite/lib/passfail.exp
+++ b/newlib/testsuite/lib/passfail.exp
@@ -41,10 +41,12 @@ proc newlib_pass_fail { srcfile } {
set comp_output [newlib_target_compile "$fullsrcfile" "$test_driver" "executable" ""]
if { $comp_output != "" } {
- fail "Failed to compile $fullsrcfile.\n"
+ fail "$subdir/$srcfile compilation"
+ unresolved "$subdir/$srcfile execution"
} else {
+ pass "$subdir/$srcfile compilation"
set result [newlib_load $test_driver ""]
set status [lindex $result 0]
- $status "$fullsrcfile"
+ $status "$subdir/$srcfile execution"
}
}