mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
* binutils-all/objcopy.exp (copy_setup): Don't perror, use send_log.
(copy_executable): Return early if test2 is blank. Return unsupported rather than unresolved if we can't run executables. Do test1 if we can compile.
This commit is contained in:
@@ -516,7 +516,7 @@ proc copy_setup { } {
|
||||
set status [lindex $result 0]
|
||||
|
||||
if { $status != "pass" } {
|
||||
perror "unresolved setup, status = $status"
|
||||
send_log "cannot run executable, status = ${status}\n"
|
||||
return 3
|
||||
}
|
||||
|
||||
@@ -541,6 +541,9 @@ proc copy_executable { prog flags test1 test2 } {
|
||||
|
||||
if ![string match "" $exec_output] {
|
||||
fail $test1
|
||||
if [string match "" $test2] {
|
||||
return
|
||||
}
|
||||
fail $test2
|
||||
return
|
||||
}
|
||||
@@ -582,6 +585,10 @@ proc copy_executable { prog flags test1 test2 } {
|
||||
fail $test1
|
||||
}
|
||||
|
||||
if [string match "" $test2] {
|
||||
return
|
||||
}
|
||||
|
||||
set output [remote_load target tmpdir/copyprog]
|
||||
set status [lindex $output 0]
|
||||
if { $status != "pass" } {
|
||||
@@ -693,10 +700,10 @@ switch [copy_setup] {
|
||||
untested $test4
|
||||
}
|
||||
"3" {
|
||||
unresolved $test1
|
||||
unresolved $test2
|
||||
unresolved $test3
|
||||
unresolved $test4
|
||||
copy_executable "$OBJCOPY" "$OBJCOPYFLAGS" "$test1" ""
|
||||
unsupported $test2
|
||||
unsupported $test3
|
||||
unsupported $test4
|
||||
}
|
||||
"0" {
|
||||
copy_executable "$OBJCOPY" "$OBJCOPYFLAGS" "$test1" "$test2"
|
||||
|
||||
Reference in New Issue
Block a user