This makes it possible to use for loops (and other language constructs)
in inline tests.
Details
- Reviewers
teemperor mgorny - Commits
- rG349295fcf37e: [lldb/test] Allow indentation in inline tests
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
LGTM, thanks.
On a more general note: I wish we would just kill off inline tests instead of trying to make them usable. But I think that's a discussion for the mailing lists...
lldb/test/API/test_utils/TestInlineTest.py | ||
---|---|---|
10 | nit: maybe give this a more unique name + a doc string. | |
10 | Also I think this should be a NO_DEBUG_INFO_TESTCASE ? |
lldb/test/API/test_utils/TestInlineTest.py | ||
---|---|---|
10 | Fun fact: tests which inherit from Base (instead of TestBase) don't automatically get debug info multiplication. (They also don't get a lot of other things, which is why this isn't suitable for regular tests, but this isn't a regular test.) |
I actually kinda like the inline tests, as they allow you to put the source code and the test expectations into the same file (which makes them very similar to llvm tests). But they do leave a lot to be desired...
I agree, we should be trying to get ride of inline tests. The last time I had to debug one it was not a fun experience. Maybe some of the recent improvements have helped there though.
nit: maybe give this a more unique name + a doc string.