labath added inline comments.

================
Comment at: lldb/test/API/tools/lldb-vscode/launch/TestVSCode_launch.py:50-53
+        time.sleep(1)
+        # lldb-vscode process must have already finished even though
+        # we didn't close the communication socket explicitly
+        self.assertEqual(self.vscode.process.poll(), 0)
----------------
1 second is pretty short, and I wouldn't be surprised if it causes spurious 
failures.

Using `popen.wait()` would be _much_ better -- you can use a much larger 
timeout, while still having the test terminate quickly in the common case.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D76314/new/

https://reviews.llvm.org/D76314



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to