tests: Ignore whitespace in llvm_supports_binding() and llvm_gcc_supports().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111524 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar 2010-08-19 16:46:52 +00:00
parent 979e0a1414
commit 62b4d71d7f

View File

@ -148,13 +148,13 @@ def llvm_supports_target(name):
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