[lldb][tests] Automatically call compute_mydir (NFC)Eliminate boilerplate of having each test manually assign to `mydir` by calling`compute_mydir` in lldbtest.py.Differential Revision: https://r
[lldb][tests] Automatically call compute_mydir (NFC)Eliminate boilerplate of having each test manually assign to `mydir` by calling`compute_mydir` in lldbtest.py.Differential Revision: https://reviews.llvm.org/D128077
show more ...
[lldb] Replace asserts on .Success() with assertSuccess()Replace forms of `assertTrue(err.Success())` with `assertSuccess(err)` (added in D82759).* `assertSuccess` prints out the error's message
[lldb] Replace asserts on .Success() with assertSuccess()Replace forms of `assertTrue(err.Success())` with `assertSuccess(err)` (added in D82759).* `assertSuccess` prints out the error's message* `assertSuccess` expresses explicit higher level semantics, both to the reader and for test failure output* `assertSuccess` seems not to be well known, using it where possible will help spread knowledge* `assertSuccess` statements are more succinctDifferential Revision: https://reviews.llvm.org/D119616
Add a test for debugserver handling threads suspended from within a program.Mach allows you to suspend and resume other threads within a program, sodebugserver has to be careful not to interfere w
Add a test for debugserver handling threads suspended from within a program.Mach allows you to suspend and resume other threads within a program, sodebugserver has to be careful not to interfere with this when it goes to supend andresume threads while stepping over breakpoints and calling functions. Eventrickier, if you call a function on a suspended thread, it has to resume thethread to get the expression to run, and then suspend it properly when done.This all works already, but there wasn't a test for it. Adding that here.This same test could be written for a unix that supports pthread_{suspend,resume}_np, butmacOS doesn't support these calls, only the mach version. It doesn't look likea lot of Linux'es support this (AIX does apparently...) And IIUC Windows allowsyou to suspend and resume other threads, but the code for that would look prettydifferent than this main.c. So for simplicity's sake I wrote this test for Darwin-only.