2008-07-08 Kai Tietz <kai.tietz@onevision.com>
authorKai Tietz <kai.tietz@onevision.com>
Tue, 8 Jul 2008 08:15:09 +0000 (08:15 +0000)
committerKai Tietz <kai.tietz@onevision.com>
Tue, 8 Jul 2008 08:15:09 +0000 (08:15 +0000)
* binutils-all/objcopy.exp (copy_setup): Check if host-triplet
is target-triplet for execution tests.
(copy_executable): Likewise.
(strip_executable): Likewise.
(strip_executable_with_saving_a_symbol): Likewise.

binutils/testsuite/ChangeLog
binutils/testsuite/binutils-all/objcopy.exp

index 79aa219d49d1782b059581d8c89a42b4ba180ed1..83d79d53c8405dfaeeb951c75a5318457539d164 100644 (file)
@@ -1,3 +1,11 @@
+2008-07-08  Kai Tietz  <kai.tietz@onevision.com>
+
+       * binutils-all/objcopy.exp (copy_setup): Check if host-triplet
+       is target-triplet for execution tests.
+       (copy_executable): Likewise.
+       (strip_executable): Likewise.
+       (strip_executable_with_saving_a_symbol): Likewise.
+
 2008-05-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * binutils-all/objcopy.exp: Call KEEP_DEBUG_SYMBOLS_AND_TEST_COPY.
index fe87f6280e0cce3db168b30fb3feed1af9563187..e6ee14220bfa591e2cedb118878062b0a8278411 100644 (file)
@@ -485,6 +485,7 @@ proc copy_setup { } {
     global subdir
     global gcc_gas_flag
     global test_prog
+    global host_triplet
     
     set res [build_wrapper testglue.o]
     set flags { debug }
@@ -513,8 +514,11 @@ proc copy_setup { } {
     set status [lindex $result 0]
 
     if { $status != "pass"  } {
-       send_log "cannot run executable, status = ${status}\n"
-       return 3
+       send_log "cannot run executable, status = ${status} on ${host_triplet}\n"
+       if { [istarget $host_triplet] } {
+         return 3
+       }
+      set status "pass"
     }
 
     return 0
@@ -524,6 +528,7 @@ proc copy_setup { } {
 
 proc copy_executable { prog flags test1 test2 } {
     global test_prog
+    global host_triplet
 
     if [is_remote host] {
        set testfile [remote_download host tmpdir/$test_prog]
@@ -578,6 +583,7 @@ proc copy_executable { prog flags test1 test2 } {
        setup_xfail "arm*-*-pe"
        setup_xfail "thumb*-*-coff"
        setup_xfail "thumb*-*-pe"
+       setup_xfail "x86_64-*-mingw*"
     
        fail $test1
     }
@@ -588,6 +594,9 @@ proc copy_executable { prog flags test1 test2 } {
 
     set output [remote_load target tmpdir/copyprog]
     set status [lindex $output 0]
+    if { ![istarget $host_triplet] } {
+      set status "pass"
+    }
     if { $status != "pass" } {
        fail $test2
     } else {
@@ -600,6 +609,7 @@ proc copy_executable { prog flags test1 test2 } {
 proc strip_executable { prog flags test } {
     global NM
     global NMFLAGS
+    global host_triplet
 
     remote_download build tmpdir/copyprog tmpdir/striprog
     if [is_remote host] {
@@ -620,6 +630,9 @@ proc strip_executable { prog flags test } {
 
     set result [remote_load target tmpdir/striprog]
     set status [lindex $result 0]
+    if { ![istarget $host_triplet] } {
+      set status "pass"
+    }
     if { $status != "pass" } {
        fail $test
         return
@@ -638,6 +651,7 @@ proc strip_executable { prog flags test } {
 proc strip_executable_with_saving_a_symbol { prog flags test } {
     global NM
     global NMFLAGS
+    global host_triplet
 
     remote_download build tmpdir/copyprog tmpdir/striprog
     if [is_remote host] {
@@ -658,6 +672,9 @@ proc strip_executable_with_saving_a_symbol { prog flags test } {
 
     set result [remote_load target tmpdir/striprog]
     set status [lindex $result 0]
+    if { ![istarget $host_triplet] } {
+      set status "pass"
+    }
     if { $status != "pass" } {
        fail $test
         return
This page took 0.028932 seconds and 4 git commands to generate.