ecos.exp (wkali-2.c): Xfail if only weak aliases are supported.
authorJeffrey Oldham <oldham@codesourcery.com>
Thu, 18 Jan 2001 02:30:03 +0000 (02:30 +0000)
committerJeffrey D. Oldham <oldham@gcc.gnu.org>
Thu, 18 Jan 2001 02:30:03 +0000 (02:30 +0000)
2001-01-17  Jeffrey Oldham  <oldham@codesourcery.com>

* gcc.dg/special/ecos.exp (wkali-2.c): Xfail if only weak aliases
are supported.

From-SVN: r39106

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/special/ecos.exp

index ab2f3104f78c47b0c7db40d3d49aa0ab696eb7ee..229ef2159844f012a0de8fbbce5a2bd53fd0b455 100644 (file)
@@ -1,3 +1,8 @@
+2001-01-17  Jeffrey Oldham  <oldham@codesourcery.com>
+
+       * gcc.dg/special/ecos.exp (wkali-2.c): Xfail if only weak aliases
+       are supported.
+
 2001-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * g++.old-deja/g++.other/builtins1.C: New test.
index 8ed0daf3afb045d62491df2b266d8e47c09733bd..4bf7b0ef8eb4a976bc14444410736f65d3918066 100644 (file)
@@ -1,4 +1,4 @@
-#   Copyright (C) 1999, 2000 Free Software Foundation, Inc.
+#   Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -116,7 +116,10 @@ if { [ check_weak_available ] == 1 } {
         fail "wkali-2a.o"
     } else {
         set lines [gcc_target_compile "$srcdir/$subdir/wkali-2b.c" "wkali-2b.o" object ""]
-        if ![string match "" $lines] then {
+        if [string match "*only weak aliases*" $lines] then {
+           xfail "wkali-2b.o"
+           file delete $srcdir/$subdir/a.out
+        } elseif ![string match "" $lines] then {
             fail "wkali-2b.o"
         } else {
             dg-runtest "$srcdir/$subdir/wkali-2.c" "wkali-2a.o wkali-2b.o" ""