[LNT] r205927 - When passing no arguments to compile suite, show an error instead of crashing
Chris Matthews
cmatthews5 at apple.com
Wed Apr 9 13:54:59 PDT 2014
Author: cmatthews
Date: Wed Apr 9 15:54:59 2014
New Revision: 205927
URL: http://llvm.org/viewvc/llvm-project?rev=205927&view=rev
Log:
When passing no arguments to compile suite, show an error instead of crashing
The command "lnt runtest compile" crashes, where as "lnt runtest nt" prints help. Fix this so the compile suite also displays help.
Modified:
lnt/trunk/lnt/tests/compile.py
Modified: lnt/trunk/lnt/tests/compile.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/tests/compile.py?rev=205927&r1=205926&r2=205927&view=diff
==============================================================================
--- lnt/trunk/lnt/tests/compile.py (original)
+++ lnt/trunk/lnt/tests/compile.py Wed Apr 9 15:54:59 2014
@@ -762,6 +762,9 @@ class CompileTest(builtintest.BuiltinTes
if len(args) != 0:
parser.error("invalid number of arguments")
+ if opts.cc is None:
+ parser.error("You must specify a --cc argument.")
+
# Resolve the cc_under_test path.
opts.cc = resolve_command_path(opts.cc)
More information about the llvm-commits
mailing list