[llvm-commits] [llvm-gcc-4.2] r43863 - in /llvm-gcc-4.2/trunk/gcc/testsuite/lib: target-supports-dg.exp target-supports.exp
Dale Johannesen
dalej at apple.com
Wed Nov 7 17:05:59 PST 2007
Author: johannes
Date: Wed Nov 7 19:05:58 2007
New Revision: 43863
URL: http://llvm.org/viewvc/llvm-project?rev=43863&view=rev
Log:
Add some entry points to support disabling tests
that are irrelevant to LLVM.
Modified:
llvm-gcc-4.2/trunk/gcc/testsuite/lib/target-supports-dg.exp
llvm-gcc-4.2/trunk/gcc/testsuite/lib/target-supports.exp
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/lib/target-supports-dg.exp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/lib/target-supports-dg.exp?rev=43863&r1=43862&r2=43863&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/lib/target-supports-dg.exp (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/lib/target-supports-dg.exp Wed Nov 7 19:05:58 2007
@@ -77,6 +77,19 @@
}
}
+# LLVM LOCAL begin
+# Skip tests that use the -fdump options; llvm doesn't have these
+# and never will.
+
+proc dg-require-fdump { args } {
+ if { [ is_llvm ] } {
+ upvar dg-do-what dg-do-what
+ set dg-do-what [list [lindex ${dg-do-what} 0] "N" "P"]
+ }
+}
+
+# LLVM LOCAL end
+
# If this target does not support DLL attributes skip this test.
proc dg-require-dll { args } {
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/lib/target-supports.exp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/lib/target-supports.exp?rev=43863&r1=43862&r2=43863&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/lib/target-supports.exp (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/lib/target-supports.exp Wed Nov 7 19:05:58 2007
@@ -307,6 +307,13 @@
verbose "Profiling argument is <$test_what>" 1
+# LLVM LOCAL begin
+ # We don't yet support profiling.
+ if { [ is_llvm ] } {
+ return 0
+ }
+# LLVM LOCAL end
+
# These conditions depend on the argument so examine them before
# looking at the cache variable.
@@ -1968,3 +1975,10 @@
return 0
}
+
+# LLVM LOCAL begin
+# This is used to disable various tests for llvm.
+proc is_llvm { } {
+ return 1
+}
+# LLVM LOCAL end
More information about the llvm-commits
mailing list