Skip to content

Commit

Permalink
lit: Allow clients to define predefined parameters.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109999 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
ddunbar committed Aug 2, 2010
1 parent e383701 commit 6647033
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions utils/lit/lit/lit.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,7 @@ def get_test_fn(test):
from LitTestCase import LitTestCase
return unittest.TestSuite([LitTestCase(test, litConfig) for test in tests])

def main():
# Bump the GIL check interval, its more important to get any one thread to a
def main(builtinParameters = {}): # Bump the GIL check interval, its more important to get any one thread to a
# blocking operation (hopefully exec) than to try and unblock other threads.
#
# FIXME: This is a hack.
Expand Down Expand Up @@ -469,7 +468,7 @@ def main():
inputs = args

# Create the user defined parameters.
userParams = {}
userParams = dict(builtinParameters)
for entry in opts.userParameters:
if '=' not in entry:
name,val = entry,''
Expand Down

0 comments on commit 6647033

Please sign in to comment.