go-test.exp (go-gc-tests): Don't run chan/select2.go on systems which don't support...
authorIan Lance Taylor <ian@gcc.gnu.org>
Thu, 9 Feb 2012 06:42:03 +0000 (06:42 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 9 Feb 2012 06:42:03 +0000 (06:42 +0000)
* go.test/go-test.exp (go-gc-tests): Don't run chan/select2.go on
systems which don't support -fsplit-stack.

From-SVN: r184033

gcc/testsuite/ChangeLog
gcc/testsuite/go.test/go-test.exp

index e51758706811b1e9b8122f0aed9af1b490c3f3a0..8bfbbdea670d6b778f40b6a3c7b5672ddc43d977 100644 (file)
@@ -1,7 +1,12 @@
+2012-02-08  Ian Lance Taylor  <iant@google.com>
+
+       * go.test/go-test.exp (go-gc-tests): Don't run chan/select2.go on
+       systems which don't support -fsplit-stack.
+
 2012-02-08  Andrew MacLeod  <amacleod@redhat.com>
 
        * gcc.dg/simulate-thread/simulate-thread.exp: Use -O0, -O2, and -O3.
-       * gcc.dg/simulate-thread/simulate-thread.gdb: Don't display every 
+       * gcc.dg/simulate-thread/simulate-thread.gdb: Don't display every
        machine instuction in the log.
 
 2012-02-08  Jack Howarth <howarth@bromo.med.uc.edu>
index d5f2f4e4797feb4086b3c017c054190eff26c1a7..4c85c801d83554da1fdd79a2df32ce17011f41d0 100644 (file)
@@ -33,6 +33,7 @@
 
 load_lib go-dg.exp
 load_lib go-torture.exp
+load_lib target-supports.exp
 
 # Compare two files
 proc filecmp { file1 file2 testname } {
@@ -329,6 +330,15 @@ proc go-gc-tests { } {
            continue
        }
 
+       if { [file tail $test] == "select2.go" && \
+                ! [check_effective_target_split_stack] } {
+           # chan/select2.go fails on targets without split stack,
+           # because they allocate a large stack segment that blows
+           # out the memory calculations.
+           untested $name
+           continue
+       }
+
        set fd [open $test r]
 
        set lines_ok 1