[llvm-commits] [llvm] r111524 - /llvm/trunk/test/lit.cfg
Daniel Dunbar
daniel at zuster.org
Thu Aug 19 09:46:52 PDT 2010
Author: ddunbar
Date: Thu Aug 19 11:46:52 2010
New Revision: 111524
URL: http://llvm.org/viewvc/llvm-project?rev=111524&view=rev
Log:
tests: Ignore whitespace in llvm_supports_binding() and llvm_gcc_supports().
Modified:
llvm/trunk/test/lit.cfg
Modified: llvm/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lit.cfg?rev=111524&r1=111523&r2=111524&view=diff
==============================================================================
--- llvm/trunk/test/lit.cfg (original)
+++ llvm/trunk/test/lit.cfg Thu Aug 19 11:46:52 2010
@@ -148,13 +148,13 @@
def llvm_supports_darwin_and_target(name):
return 'darwin' in config.target_triple and llvm_supports_target(name)
-langs = set(site_exp['llvmgcc_langs'].split(','))
+langs = set([s.strip for s in site_exp['llvmgcc_langs'].split(',')])
def llvm_gcc_supports(name):
- return name in langs
+ return name.strip() in langs
-bindings = set(site_exp['llvm_bindings'].split(','))
+bindings = set([s.strip for s in site_exp['llvm_bindings'].split(',')])
def llvm_supports_binding(name):
- return name in bindings
+ return name.strip() in bindings
# Provide on_clone hook for reading 'dg.exp'.
import os
More information about the llvm-commits
mailing list