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.
This commit is contained in:
parent
650c30276a
commit
b776efc599
|
@ -1,3 +1,10 @@
|
||||||
|
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.
|
||||||
|
|
||||||
2005-07-08 Ola Hugosson <Ola.Hugosson@anoto.com>
|
2005-07-08 Ola Hugosson <Ola.Hugosson@anoto.com>
|
||||||
|
|
||||||
* libc/string/wcsspn.c (wcsspn): Add missing increment of q.
|
* libc/string/wcsspn.c (wcsspn): Add missing increment of q.
|
||||||
|
|
|
@ -17,9 +17,11 @@ proc newlib_check_output { srcfile expectlist } {
|
||||||
set comp_output [newlib_target_compile "$srcfullname" "$test_driver" "executable" ""]
|
set comp_output [newlib_target_compile "$srcfullname" "$test_driver" "executable" ""]
|
||||||
|
|
||||||
if { $comp_output != "" } {
|
if { $comp_output != "" } {
|
||||||
fail "Failed to compile $srcfile.\n"
|
fail "$subdir/$srcfile compilation"
|
||||||
|
unresolved "$subdir/$srcfile output"
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
pass "$subdir/$srcfile compilation"
|
||||||
|
|
||||||
set result [newlib_load $test_driver ""]
|
set result [newlib_load $test_driver ""]
|
||||||
set status [lindex $result 0]
|
set status [lindex $result 0]
|
||||||
|
@ -30,11 +32,12 @@ proc newlib_check_output { srcfile expectlist } {
|
||||||
foreach { expectedval } $expectlist {
|
foreach { expectedval } $expectlist {
|
||||||
set gotval [string trim [lindex $output_lines 0] "\r"]
|
set gotval [string trim [lindex $output_lines 0] "\r"]
|
||||||
if { ! [string match $expectedval $gotval] } {
|
if { ! [string match $expectedval $gotval] } {
|
||||||
fail "$srcfile: Expected: $expectedval Got: $gotval "
|
verbose -log "$subdir/$srcfile: Expected: $expectedval Got: $gotval "
|
||||||
|
fail "$subdir/$srcfile output"
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
set output_lines [lrange $output_lines 1 end]
|
set output_lines [lrange $output_lines 1 end]
|
||||||
}
|
}
|
||||||
|
|
||||||
pass $srcfile
|
pass "$subdir/$srcfile output"
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,10 +41,12 @@ proc newlib_pass_fail { srcfile } {
|
||||||
set comp_output [newlib_target_compile "$fullsrcfile" "$test_driver" "executable" ""]
|
set comp_output [newlib_target_compile "$fullsrcfile" "$test_driver" "executable" ""]
|
||||||
|
|
||||||
if { $comp_output != "" } {
|
if { $comp_output != "" } {
|
||||||
fail "Failed to compile $fullsrcfile.\n"
|
fail "$subdir/$srcfile compilation"
|
||||||
|
unresolved "$subdir/$srcfile execution"
|
||||||
} else {
|
} else {
|
||||||
|
pass "$subdir/$srcfile compilation"
|
||||||
set result [newlib_load $test_driver ""]
|
set result [newlib_load $test_driver ""]
|
||||||
set status [lindex $result 0]
|
set status [lindex $result 0]
|
||||||
$status "$fullsrcfile"
|
$status "$subdir/$srcfile execution"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue