Xfail mix_pic_and_non_pic on arm and aarch64
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 2 Mar 2016 19:35:03 +0000 (11:35 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 2 Mar 2016 19:36:00 +0000 (11:36 -0800)
* testsuite/ld-elf/shared.exp (mix_pic_and_non_pic): Add xfails.
Xfail mix_pic_and_non_pic on "arm*-*-*" "aarch64*-*-*".

ld/ChangeLog
ld/testsuite/ld-elf/shared.exp

index e27d5f011312b045064ca6d6eaad2db3e84ab076..c8399717efd347b1da02f217002723caf789e741 100644 (file)
@@ -1,3 +1,8 @@
+2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/ld-elf/shared.exp (mix_pic_and_non_pic): Add xfails.
+       Xfail mix_pic_and_non_pic on "arm*-*-*" "aarch64*-*-*".
+
 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/19739
index e615f55b95156d82f650be00dba343db10d00956..678ab1bb31f8169760128cb16551c3fbdedd07b1 100644 (file)
@@ -583,7 +583,7 @@ if { [istarget *-*-linux*]
     ]
 }
 
-proc mix_pic_and_non_pic {cflags ldflags} {
+proc mix_pic_and_non_pic {xfails cflags ldflags} {
     set testname "Mixing PIC and non-PIC"
     if { ![ string match "" $cflags$ldflags] } {
        set testname "$testname ($cflags $ldflags)"
@@ -632,6 +632,10 @@ proc mix_pic_and_non_pic {cflags ldflags} {
 
     exec cp tmpdir/libpr19719a.so tmpdir/libpr19719.so
 
+    foreach targ $xfails {
+       setup_xfail $targ
+    }
+
     set exec_output [run_host_cmd tmpdir/pr19719 ""]
     if {![string match "PASS" $exec_output]} {
        fail $testname
@@ -640,5 +644,5 @@ proc mix_pic_and_non_pic {cflags ldflags} {
     }
 }
 
-mix_pic_and_non_pic "" ""
-mix_pic_and_non_pic "-fPIE" "-pie"
+mix_pic_and_non_pic [list "arm*-*-*" "aarch64*-*-*"] "" ""
+mix_pic_and_non_pic [] "-fPIE" "-pie"