[llvm] r332423 - Use not to catch unexpected pass as well as remove old test results

Chris Matthews via llvm-commits llvm-commits at lists.llvm.org
Tue May 15 17:33:29 PDT 2018


Author: cmatthews
Date: Tue May 15 17:33:29 2018
New Revision: 332423

URL: http://llvm.org/viewvc/llvm-project?rev=332423&view=rev
Log:
Use not to catch unexpected pass as well as remove old test results

As per review feedback, make sure we rm temp files, and make the return
code checking for lit more specific.

Modified:
    llvm/trunk/utils/lit/tests/xunit-output.py

Modified: llvm/trunk/utils/lit/tests/xunit-output.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/tests/xunit-output.py?rev=332423&r1=332422&r2=332423&view=diff
==============================================================================
--- llvm/trunk/utils/lit/tests/xunit-output.py (original)
+++ llvm/trunk/utils/lit/tests/xunit-output.py Tue May 15 17:33:29 2018
@@ -1,5 +1,6 @@
 # Check xunit output
-# RUN: %{lit} --xunit-xml-output %t.xunit.xml %{inputs}/xunit-output || true
+# RUN: rm -rf %t.xunit.xml
+# RUN: not %{lit} --xunit-xml-output %t.xunit.xml %{inputs}/xunit-output
 # RUN: FileCheck < %t.xunit.xml %s
 
 # CHECK: <?xml version="1.0" encoding="UTF-8" ?>




More information about the llvm-commits mailing list