<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 3, 2015 at 11:03 AM, Owen Anderson <span dir="ltr"><<a href="mailto:resistor@mac.com" target="_blank">resistor@mac.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi chandlerc, joker.eph,<br>
<br>
This is useful when checking diagnostics and annotations that are only enabled in asserts mode. </blockquote><div><br></div><div>Not sure I quite follow - "REQUIRES: Asserts" would be used for any test case that's verifying a failure that's only enabled in asserts mode. "REQUIRES: no-asserts" would be for testing the absence of that same failure in a no-asserts build?<br><br>That seems like a thing I wouldn't want to test for. The idea is that the program has undefined behavior if it would assert but you're in a non-asserts build. That's not a thing to test for - there's no specific/guaranteed behavior in that case.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> Today we can only test the positive case (when asserts are enabled) but not the negative case.<br>
<br>
REPOSITORY<br>
  rL LLVM<br>
<br>
<a href="http://reviews.llvm.org/D7383" target="_blank">http://reviews.llvm.org/D7383</a><br>
<br>
Files:<br>
  test/lit.cfg<br>
<br>
Index: test/lit.cfg<br>
===================================================================<br>
--- test/lit.cfg<br>
+++ test/lit.cfg<br>
@@ -370,6 +370,8 @@<br>
<br>
 if re.search(r'ON', llvm_config_cmd.stdout.read().decode('ascii')):<br>
     config.available_features.add('asserts')<br>
+else:<br>
+    config.available_features.add('no-asserts')<br>
 llvm_config_cmd.wait()<br>
<br>
 if 'darwin' == sys.platform:<br>
<br>
EMAIL PREFERENCES<br>
  <a href="http://reviews.llvm.org/settings/panel/emailpreferences/" target="_blank">http://reviews.llvm.org/settings/panel/emailpreferences/</a><br>
<br>_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
<br></blockquote></div><br></div></div>