[PATCH] Testsuite - disable some tests which can never work on arm-elf

Richard Earnshaw rearnsha@arm.com
Fri Oct 31 11:06:00 GMT 2003


This patch disables (or marks as XFAIL) several tests that can never work 
on arm-elf, strongarm-elf or xscale-elf configurations.  Most of these 
tests involve library support that Newlib doesn't provide.  The branch 
probability tests are skipped because libgcc on these platforms is built 
with inhibit_libc defined.

I've added one new file as part of this which will also affect the cris 
and mmix ports.  This test, g77.f-torture/execute/10197.f also creates a 
scratch file in the same way as all the other XFAIL tests for these chips. 
 So I expect that not xfailing for those platforms was an oversight rather 
than deliberate.  If I'm wrong, then these configs can be removed from the 
control file.

R.

2003-10-31  Richard Earnshaw  <rearnsha@arm.com>

	* g77.dg/bprob/bprob.exp: Disable test on arm-elf configs.
	* gcc.misc-tests/bprob.exp: Likewise.
	* g77.dg/execute/20001201.x, 6367.x, io0.x, io1.x, u77-test.x: XFAIL
	the execution test on arm-elf configs.
	* g77.dg/execute/10197.x: New file.  XFAIL the execution test on 
	configs that don't support scratch files.
	* g77.dg/execute/u77-test.x: XFAIL compilation on arm-elf configs.


-------------- next part --------------
Index: g77.dg/bprob/bprob.exp
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g77.dg/bprob/bprob.exp,v
retrieving revision 1.4
diff -p -r1.4 bprob.exp
*** g77.dg/bprob/bprob.exp	9 Jul 2003 14:57:20 -0000	1.4
--- g77.dg/bprob/bprob.exp	31 Oct 2003 10:43:04 -0000
***************
*** 20,25 ****
--- 20,28 ----
  # Some targets don't have any implementation of __bb_init_func or are
  # missing other needed machinery.
  if { [istarget mmix-*-*]
+      || [istarget arm*-*-elf]
+      || [istarget strongarm*-*-elf]
+      || [istarget xscale*-*-elf]
       || [istarget cris-*-*] } {
      return
  }
Index: g77.f-torture/execute/10197.x
===================================================================
RCS file: g77.f-torture/execute/10197.x
diff -N g77.f-torture/execute/10197.x
*** /dev/null	1 Jan 1970 00:00:00 -0000
--- g77.f-torture/execute/10197.x	31 Oct 2003 10:43:04 -0000
***************
*** 0 ****
--- 1,13 ----
+ # Scratch files aren't implemented for mmixware
+ # (_stat is a stub and files can't be deleted).
+ # Similar restrictions exist for most simulators.
+ 
+ if { [istarget "mmix-knuth-mmixware"]
+      || [istarget "arm*-*-elf"]
+      || [istarget "strongarm*-*-elf"]
+      || [istarget "xscale*-*-elf"]
+      || [istarget "cris-*-elf"] } {
+ 	set torture_execute_xfail [istarget]
+ }
+ 
+ return 0
Index: g77.f-torture/execute/20001201.x
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g77.f-torture/execute/20001201.x,v
retrieving revision 1.2
diff -p -r1.2 20001201.x
*** g77.f-torture/execute/20001201.x	22 Apr 2002 01:19:06 -0000	1.2
--- g77.f-torture/execute/20001201.x	31 Oct 2003 10:43:04 -0000
***************
*** 3,8 ****
--- 3,11 ----
  # Similar restrictions exist for most simulators.
  
  if { [istarget "mmix-knuth-mmixware"]
+      || [istarget "arm*-*-elf"]
+      || [istarget "strongarm*-*-elf"]
+      || [istarget "xscale*-*-elf"]
       || [istarget "cris-*-elf"] } {
  	set torture_execute_xfail [istarget]
  }
Index: g77.f-torture/execute/6367.x
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g77.f-torture/execute/6367.x,v
retrieving revision 1.2
diff -p -r1.2 6367.x
*** g77.f-torture/execute/6367.x	22 Apr 2002 01:19:06 -0000	1.2
--- g77.f-torture/execute/6367.x	31 Oct 2003 10:43:04 -0000
***************
*** 3,8 ****
--- 3,11 ----
  # Similar restrictions exist for most simulators.
  
  if { [istarget "mmix-knuth-mmixware"]
+      || [istarget "arm*-*-elf"]
+      || [istarget "strongarm*-*-elf"]
+      || [istarget "xscalearm*-*-elf"]
       || [istarget "cris-*-elf"] } {
  	set torture_execute_xfail [istarget]
  }
Index: g77.f-torture/execute/io0.x
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g77.f-torture/execute/io0.x,v
retrieving revision 1.2
diff -p -r1.2 io0.x
*** g77.f-torture/execute/io0.x	22 Apr 2002 01:19:06 -0000	1.2
--- g77.f-torture/execute/io0.x	31 Oct 2003 10:43:04 -0000
***************
*** 3,8 ****
--- 3,11 ----
  # Similar restrictions exist for most simulators.
  
  if { [istarget "mmix-knuth-mmixware"]
+      || [istarget "arm*-*-elf"]
+      || [istarget "strongarm*-*-elf"]
+      || [istarget "xscale*-*-elf"]
       || [istarget "cris-*-elf"] } {
  	set torture_execute_xfail [istarget]
  }
Index: g77.f-torture/execute/io1.x
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g77.f-torture/execute/io1.x,v
retrieving revision 1.2
diff -p -r1.2 io1.x
*** g77.f-torture/execute/io1.x	22 Apr 2002 01:19:06 -0000	1.2
--- g77.f-torture/execute/io1.x	31 Oct 2003 10:43:04 -0000
***************
*** 3,8 ****
--- 3,11 ----
  # Similar restrictions exist for most simulators.
  
  if { [istarget "mmix-knuth-mmixware"]
+      || [istarget "arm*-*-elf"]
+      || [istarget "strongarm*-*-elf"]
+      || [istarget "xscale*-*-elf"]
       || [istarget "cris-*-elf"] } {
  	set torture_execute_xfail [istarget]
  }
Index: g77.f-torture/execute/u77-test.x
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g77.f-torture/execute/u77-test.x,v
retrieving revision 1.2
diff -p -r1.2 u77-test.x
*** g77.f-torture/execute/u77-test.x	22 Apr 2002 01:19:06 -0000	1.2
--- g77.f-torture/execute/u77-test.x	31 Oct 2003 10:43:04 -0000
***************
*** 2,7 ****
--- 2,10 ----
  # link time.
  
  if { [istarget "mmix-knuth-mmixware"]
+      || [istarget "arm*-*-elf"]
+      || [istarget "strongarm*-*-elf"]
+      || [istarget "xscale*-*-elf"]
       || [istarget "cris-*-elf"] } {
  	set torture_compile_xfail [istarget]
  }
Index: gcc.misc-tests/bprob.exp
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.misc-tests/bprob.exp,v
retrieving revision 1.5
diff -p -r1.5 bprob.exp
*** gcc.misc-tests/bprob.exp	9 Jul 2003 14:57:20 -0000	1.5
--- gcc.misc-tests/bprob.exp	31 Oct 2003 10:43:04 -0000
***************
*** 20,25 ****
--- 20,28 ----
  # Some targets don't have any implementation of __bb_init_func or are
  # missing other needed machinery.
  if { [istarget mmix-*-*]
+      || [istarget arm*-*-elf]
+      || [istarget strongarm*-*-elf]
+      || [istarget xscale*-*-elf]
       || [istarget cris-*-*]
       || [istarget h8300-*-*] } {
      return


More information about the Gcc-patches mailing list