This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Results for binutils 2.14.90 20030618 testsuite oni786-pc-cygwin
- From: Nick Clifton <nickc at redhat dot com>
- To: binutils <binutils at sources dot redhat dot com>
- Date: Wed, 18 Jun 2003 16:15:35 +0100
- Subject: Re: Results for binutils 2.14.90 20030618 testsuite oni786-pc-cygwin
- References: <20030618113016.GA3192@Luddes>
Hi Christian,
> === binutils tests ===
>
> Running target unix
> FAIL: simple objcopy of executable
> FAIL: run objcopy of executable
> ERROR: remote_download to build of tmpdir/copyprog to tmpdir/striprog: cp: cannot stat \`tmpdir/copyprog': No such file or directory
> UNRESOLVED: run stripped executable
> ERROR: remote_download to build of tmpdir/copyprog to tmpdir/striprog: cp: cannot stat \`tmpdir/copyprog': No such file or directory
> UNRESOLVED: run stripped executable with saving a symbol
Please could you try the attached patch and let me know if it fixes
any of these failures.
Cheers
Nick
Index: binutils/testsuite/binutils-all/objcopy.exp
===================================================================
RCS file: /cvs/src/src/binutils/testsuite/binutils-all/objcopy.exp,v
retrieving revision 1.19
diff -c -3 -p -r1.19 objcopy.exp
*** binutils/testsuite/binutils-all/objcopy.exp 18 Nov 2002 08:28:38 -0000 1.19
--- binutils/testsuite/binutils-all/objcopy.exp 18 Jun 2003 15:17:04 -0000
*************** strip_test_with_saving_a_symbol
*** 425,434 ****
--- 425,441 ----
# Build a final executable.
+ if { [istarget *-*-cygwin] } {
+ set test_prog "testprog.exe"
+ } else {
+ set test_prog "testprog"
+ }
+
proc copy_setup { } {
global srcdir
global subdir
global gcc_gas_flag
+ global test_prog
set res [build_wrapper testglue.o];
set flags { debug };
*************** proc copy_setup { } {
*** 445,455 ****
set flags "additional_flags=$i $flags"
}
}
! if { [target_compile "$srcdir/$subdir/testprog.c $add_libs" tmpdir/testprog executable $flags] != "" } {
return 2
}
! set result [remote_load target tmpdir/testprog];
set status [lindex $result 0];
if { $status != "pass" } {
--- 452,462 ----
set flags "additional_flags=$i $flags"
}
}
! if { [target_compile "$srcdir/$subdir/testprog.c $add_libs" tmpdir/$test_prog executable $flags] != "" } {
return 2
}
! set result [remote_load target tmpdir/$test_prog];
set status [lindex $result 0];
if { $status != "pass" } {
*************** proc copy_setup { } {
*** 463,474 ****
# Test copying an executable.
proc copy_executable { prog flags test1 test2 } {
if [is_remote host] {
! set testfile [remote_download host tmpdir/testprog];
set testcopy copyprog
} else {
! set testfile tmpdir/testprog
set testcopy tmpdir/copyprog
}
remote_file host delete $testcopy;
--- 470,482 ----
# Test copying an executable.
proc copy_executable { prog flags test1 test2 } {
+ global test_prog
if [is_remote host] {
! set testfile [remote_download host tmpdir/$test_prog];
set testcopy copyprog
} else {
! set testfile tmpdir/$test_prog
set testcopy tmpdir/copyprog
}
remote_file host delete $testcopy;
*************** proc copy_executable { prog flags test1
*** 485,491 ****
remote_upload host $testcopy tmpdir/copyprog
}
! set status [remote_exec build "cmp" "tmpdir/testprog tmpdir/copyprog"]
set exec_output [lindex $status 1];
if [string match "" $exec_output] then {
--- 493,499 ----
remote_upload host $testcopy tmpdir/copyprog
}
! set status [remote_exec build "cmp" "tmpdir/$test_prog tmpdir/copyprog"]
set exec_output [lindex $status 1];
if [string match "" $exec_output] then {