[lldb] Add more asserts to TestExec
authorDave Lee <davelee.com@gmail.com>
Tue, 18 Apr 2023 00:14:55 +0000 (17:14 -0700)
committerDave Lee <davelee.com@gmail.com>
Tue, 18 Apr 2023 01:43:42 +0000 (18:43 -0700)
commit773d9c36043204c284324bc37a1de769a7575034
tree1488e90bf67f17d9734e522a0c6ffbf86b4fc307
parent488a4b24817ae7d9319d8a99bd96c491b2035641
[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
lldb/test/API/functionalities/exec/TestExec.py