[test-suite] r251894 - cmake/lit: Do not fail if there are no VERIFY: lines
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 2 18:47:04 PST 2015
Author: matze
Date: Mon Nov 2 20:47:04 2015
New Revision: 251894
URL: http://llvm.org/viewvc/llvm-project?rev=251894&view=rev
Log:
cmake/lit: Do not fail if there are no VERIFY: lines
Modified:
test-suite/trunk/lit.cfg
Modified: test-suite/trunk/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/lit.cfg?rev=251894&r1=251893&r2=251894&view=diff
==============================================================================
--- test-suite/trunk/lit.cfg (original)
+++ test-suite/trunk/lit.cfg Mon Nov 2 20:47:04 2015
@@ -149,16 +149,17 @@ class TestSuiteTest(FileBasedTest):
runtimes.append(runtime)
# Run verification script (the "VERIFY:" part)
- res = runScript(test, litConfig, verifyscript, tmpBase)
- if isinstance(res, lit.Test.Result):
- return res
- out, err, exitCode = res
+ if len(verifyscript) > 0:
+ res = runScript(test, litConfig, verifyscript, tmpBase)
+ if isinstance(res, lit.Test.Result):
+ return res
+ out, err, exitCode = res
- output += "\n" + "\n".join(verifyscript)
- if exitCode != 0:
- output += "\n" + out
- output += "\n" + err
- return lit.Test.Result(Test.FAIL, output)
+ output += "\n" + "\n".join(verifyscript)
+ if exitCode != 0:
+ output += "\n" + out
+ output += "\n" + err
+ return lit.Test.Result(Test.FAIL, output)
compile_time = collectCompileTime(test)
More information about the llvm-commits
mailing list