Skip to content

Commit 6a0f62c

Browse files
author
git apple-llvm automerger
committed
Merge commit '37086cadb1ae' from llvm.org/main into next
2 parents 95fb583 + 37086ca commit 6a0f62c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lldb/test/API/tools/lldb-vscode/launch/TestVSCode_launch.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,8 @@ def test_termination(self):
4646
self.vscode.request_disconnect()
4747

4848
# Wait until the underlying lldb-vscode process dies.
49-
# We need to do this because the popen.wait function in python2.7
50-
# doesn't have a timeout argument.
51-
for _ in range(10):
52-
time.sleep(1)
53-
if self.vscode.process.poll() is not None:
54-
break
49+
self.vscode.process.wait(timeout=10)
50+
5551
# Check the return code
5652
self.assertEqual(self.vscode.process.poll(), 0)
5753

0 commit comments

Comments
 (0)