[PATCH] Add a 'no-asserts' requirement option to LIT.
Owen Anderson
resistor at mac.com
Tue Feb 3 11:03:15 PST 2015
Hi chandlerc, joker.eph,
This is useful when checking diagnostics and annotations that are only enabled in asserts mode. Today we can only test the positive case (when asserts are enabled) but not the negative case.
REPOSITORY
rL LLVM
http://reviews.llvm.org/D7383
Files:
test/lit.cfg
Index: test/lit.cfg
===================================================================
--- test/lit.cfg
+++ test/lit.cfg
@@ -370,6 +370,8 @@
if re.search(r'ON', llvm_config_cmd.stdout.read().decode('ascii')):
config.available_features.add('asserts')
+else:
+ config.available_features.add('no-asserts')
llvm_config_cmd.wait()
if 'darwin' == sys.platform:
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7383.19251.patch
Type: text/x-patch
Size: 371 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150203/67a9458f/attachment.bin>
More information about the llvm-commits
mailing list