summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/hello_world
diff options
context:
space:
mode:
authorDaniel Malea <daniel.malea@intel.com>2013-07-30 21:34:44 +0000
committerDaniel Malea <daniel.malea@intel.com>2013-07-30 21:34:44 +0000
commit7dadf4999a88998dc7ec192638759faca07798c0 (patch)
tree08919fb5f3708c5af2a1eb9f3143f44c013eabcb /lldb/test/python_api/hello_world
parentbbd174b6f0046bb03f5c424f1766007d198461e1 (diff)
downloadbcm5719-llvm-7dadf4999a88998dc7ec192638759faca07798c0.tar.gz
bcm5719-llvm-7dadf4999a88998dc7ec192638759faca07798c0.zip
Assorted test suite fixes as a result of GCC 4.8 validation efforts
- disable some TestConcurrentEvents cases (which are affected by llvm.org/pr16714 -- watchpoints in multithreaded programs) - relax number-of-bp-locations check in TestUniqueTypes/TestUnsignedTypes - skip TestDataFormatterStdVector cases with GCC 4.8 (known failure due to llvm.org/pr15301) - workaround for race condition in TestHelloWorld.py - update TestSettings.py to work on distros (like Fedora) that have /bin/cat hardlinked to /usr/bin/cat After these changes, the test suite should run cleanly against GCC 4.8 (with DWARF v4)! llvm-svn: 187451
Diffstat (limited to 'lldb/test/python_api/hello_world')
-rw-r--r--lldb/test/python_api/hello_world/TestHelloWorld.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/lldb/test/python_api/hello_world/TestHelloWorld.py b/lldb/test/python_api/hello_world/TestHelloWorld.py
index 0fcfacb65f0..d4fabbbb25d 100644
--- a/lldb/test/python_api/hello_world/TestHelloWorld.py
+++ b/lldb/test/python_api/hello_world/TestHelloWorld.py
@@ -3,6 +3,7 @@
import os, sys, time
import unittest2
import lldb
+import time
from lldbtest import *
class HelloWorldTestCase(TestBase):
@@ -139,6 +140,9 @@ class HelloWorldTestCase(TestBase):
popen = self.spawnSubprocess(self.exe, ["abc", "xyz"])
self.addTearDownHook(self.cleanupSubprocesses)
+ # Give the subprocess time to start and wait for user input
+ time.sleep(0.25)
+
listener = lldb.SBListener("my.attach.listener")
error = lldb.SBError()
process = target.AttachToProcessWithID(listener, popen.pid, error)
@@ -161,6 +165,9 @@ class HelloWorldTestCase(TestBase):
popen = self.spawnSubprocess(self.exe, ["abc", "xyz"])
self.addTearDownHook(self.cleanupSubprocesses)
+ # Give the subprocess time to start and wait for user input
+ time.sleep(0.25)
+
listener = lldb.SBListener("my.attach.listener")
error = lldb.SBError()
# Pass 'False' since we don't want to wait for new instance of "hello_world" to be launched.
OpenPOWER on IntegriCloud