r206688 - Disallow driver use in more Sema tests

Alp Toker alp at nuanti.com
Sat Apr 19 12:07:31 PDT 2014


Author: alp
Date: Sat Apr 19 14:07:31 2014
New Revision: 206688

URL: http://llvm.org/viewvc/llvm-project?rev=206688&view=rev
Log:
Disallow driver use in more Sema tests

There are now only a handful of Sema tests remaining that use %clang in
SemaCXX, SemaObjC and SemaTemplate.

Added:
    cfe/trunk/test/SemaCUDA/lit.local.cfg
    cfe/trunk/test/SemaObjCXX/lit.local.cfg
    cfe/trunk/test/SemaOpenCL/lit.local.cfg

Added: cfe/trunk/test/SemaCUDA/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCUDA/lit.local.cfg?rev=206688&view=auto
==============================================================================
--- cfe/trunk/test/SemaCUDA/lit.local.cfg (added)
+++ cfe/trunk/test/SemaCUDA/lit.local.cfg Sat Apr 19 14:07:31 2014
@@ -0,0 +1,4 @@
+config.substitutions = list(config.substitutions)
+config.substitutions.insert(0,
+    (r'%clang\b',
+     """*** Do not use the driver in Sema tests. ***""") )

Added: cfe/trunk/test/SemaObjCXX/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjCXX/lit.local.cfg?rev=206688&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjCXX/lit.local.cfg (added)
+++ cfe/trunk/test/SemaObjCXX/lit.local.cfg Sat Apr 19 14:07:31 2014
@@ -0,0 +1,4 @@
+config.substitutions = list(config.substitutions)
+config.substitutions.insert(0,
+    (r'%clang\b',
+     """*** Do not use the driver in Sema tests. ***""") )

Added: cfe/trunk/test/SemaOpenCL/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaOpenCL/lit.local.cfg?rev=206688&view=auto
==============================================================================
--- cfe/trunk/test/SemaOpenCL/lit.local.cfg (added)
+++ cfe/trunk/test/SemaOpenCL/lit.local.cfg Sat Apr 19 14:07:31 2014
@@ -0,0 +1,4 @@
+config.substitutions = list(config.substitutions)
+config.substitutions.insert(0,
+    (r'%clang\b',
+     """*** Do not use the driver in Sema tests. ***""") )





More information about the cfe-commits mailing list