For now, insert some delays between succesive test cases in the test/types directory
if not already specified by the test driver (via ./dotest -w). Remove the AbstractBase.setUp() method definition when/if we find out the cause of the failures if no delays are inserted between these test cases. llvm-svn: 133495
This commit is contained in:
parent
4c406e7457
commit
ed492022f4
|
|
@ -465,6 +465,15 @@ class TestBase(unittest2.TestCase):
|
|||
print >> sys.stderr, "Restore dir to:", cls.oldcwd
|
||||
os.chdir(cls.oldcwd)
|
||||
|
||||
def doDelay(self):
|
||||
"""See option -w of dotest.py."""
|
||||
if ("LLDB_WAIT_BETWEEN_TEST_CASES" in os.environ and
|
||||
os.environ["LLDB_WAIT_BETWEEN_TEST_CASES"] == 'YES'):
|
||||
waitTime = 1.0
|
||||
if "LLDB_TIME_WAIT_BETWEEN_TEST_CASES" in os.environ:
|
||||
waitTime = float(os.environ["LLDB_TIME_WAIT_BETWEEN_TEST_CASES"])
|
||||
time.sleep(waitTime)
|
||||
|
||||
def setUp(self):
|
||||
#import traceback
|
||||
#traceback.print_stack()
|
||||
|
|
@ -496,12 +505,8 @@ class TestBase(unittest2.TestCase):
|
|||
except AttributeError:
|
||||
pass
|
||||
|
||||
if ("LLDB_WAIT_BETWEEN_TEST_CASES" in os.environ and
|
||||
os.environ["LLDB_WAIT_BETWEEN_TEST_CASES"] == 'YES'):
|
||||
waitTime = 1.0
|
||||
if "LLDB_TIME_WAIT_BETWEEN_TEST_CASES" in os.environ:
|
||||
waitTime = float(os.environ["LLDB_TIME_WAIT_BETWEEN_TEST_CASES"])
|
||||
time.sleep(waitTime)
|
||||
# Insert some delay between successive test cases if specified.
|
||||
self.doDelay()
|
||||
|
||||
if "LLDB_MAX_LAUNCH_COUNT" in os.environ:
|
||||
self.maxLaunchCount = int(os.environ["LLDB_MAX_LAUNCH_COUNT"])
|
||||
|
|
|
|||
|
|
@ -20,6 +20,17 @@ class GenericTester(TestBase):
|
|||
# Assert message.
|
||||
DATA_TYPE_GROKKED = "Data type from expr parser output is parsed correctly"
|
||||
|
||||
# FIXME: Remove this method when/if we find out the cause of the failures
|
||||
# if no delays are inserted between test cases.
|
||||
def setUp(self):
|
||||
# Call super's setUp().
|
||||
TestBase.setUp(self)
|
||||
# Insert some delay for running test cases under test/types if not
|
||||
# already so by the TestBase.setUp().
|
||||
if "LLDB_WAIT_BETWEEN_TEST_CASES" not in os.environ:
|
||||
#print "some delay, please ...."
|
||||
time.sleep(1.0)
|
||||
|
||||
def generic_type_tester(self, atoms, quotedDisplay=False):
|
||||
"""Test that variables with basic types are displayed correctly."""
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue