[all-commits] [llvm/llvm-project] 773d9c: [lldb] Add more asserts to TestExec
Dave Lee via All-commits
all-commits at lists.llvm.org
Mon Apr 17 18:43:55 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 773d9c36043204c284324bc37a1de769a7575034
https://github.com/llvm/llvm-project/commit/773d9c36043204c284324bc37a1de769a7575034
Author: Dave Lee <davelee.com at gmail.com>
Date: 2023-04-17 (Mon, 17 Apr 2023)
Changed paths:
M lldb/test/API/functionalities/exec/TestExec.py
Log Message:
-----------
[lldb] Add more asserts to TestExec
If this test fails, the error message isn't helpful:
```
self.assertEqual(len(threads), 1,
AssertionError: 0 != 1 : Stopped at breakpoint in exec'ed process
```
This change adds asserts to verify that:
1. The process is stopped
2. For each thread, that the stop reason is None, or Breakpoint
The latter will indicate if execution has stopped for some other reason, and if so what
that reason is.
Differential Revision: https://reviews.llvm.org/D148588
More information about the All-commits
mailing list