[all-commits] [llvm/llvm-project] df93c4: Remove some raciness from the TestProcessAttach.te...

jimingham via All-commits all-commits at lists.llvm.org
Wed Sep 20 13:10:31 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: df93c4ffdf220630ecceba5c9a7822c0aca7deaa
      https://github.com/llvm/llvm-project/commit/df93c4ffdf220630ecceba5c9a7822c0aca7deaa
  Author: Jim Ingham <jingham at apple.com>
  Date:   2023-09-20 (Wed, 20 Sep 2023)

  Changed paths:
    M lldb/test/API/commands/process/attach/TestProcessAttach.py

  Log Message:
  -----------
  Remove some raciness from the TestProcessAttach.test_run_then_attach_wait_interrupt
command.

We were reading the command output right after sending the interrupt, but
sometimes that wasn't long enough for the command result text to have been emitted.
I added a poll for the state change to eStateExited, and then added a bit more sleep
to give the command a chance to complete.




More information about the All-commits mailing list