[lld] r185619 - Try to guard a test that requires DEBUG().

Rui Ueyama ruiu at google.com
Thu Jul 4 02:29:48 PDT 2013


Author: ruiu
Date: Thu Jul  4 04:29:47 2013
New Revision: 185619

URL: http://llvm.org/viewvc/llvm-project?rev=185619&view=rev
Log:
Try to guard a test that requires DEBUG().

This is a follow-up patch for r185524. Being assert enabled does not mean
that DEBUG() is enabled, so we need to check the existence of DEBUG() itself.

Modified:
    lld/trunk/test/layout-error-test.objtxt
    lld/trunk/test/lit.cfg

Modified: lld/trunk/test/layout-error-test.objtxt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/layout-error-test.objtxt?rev=185619&r1=185618&r2=185619&view=diff
==============================================================================
--- lld/trunk/test/layout-error-test.objtxt (original)
+++ lld/trunk/test/layout-error-test.objtxt Thu Jul  4 04:29:47 2013
@@ -1,4 +1,4 @@
-# REQUIRES: asserts
+# REQUIRES: debug
 # RUN: lld -core --add-pass layout -mllvm -debug-only=LayoutPass %s 2>&1 \
 # RUN:   | FileCheck %s -check-prefix=CHECK
 

Modified: lld/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/lit.cfg?rev=185619&r1=185618&r2=185619&view=diff
==============================================================================
--- lld/trunk/test/lit.cfg (original)
+++ lld/trunk/test/lit.cfg Thu Jul  4 04:29:47 2013
@@ -126,6 +126,8 @@ except OSError, why:
     print "Could not find llc in " + llvm_tools_dir
     exit(42)
 
+if re.search(r'DEBUG', llc_cmd.stdout.read()):
+    config.available_features.add('debug')
 if re.search(r'with assertions', llc_cmd.stdout.read()):
     config.available_features.add('asserts')
 llc_cmd.wait()





More information about the llvm-commits mailing list