[all-commits] [llvm/llvm-project] 2bab17: [lldb] Make TestFormatters.py not rely on working ...
Raphael Isemann via All-commits
all-commits at lists.llvm.org
Wed Feb 19 01:21:55 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 2bab1738f39606324f7bd4c71de1354288c63285
https://github.com/llvm/llvm-project/commit/2bab1738f39606324f7bd4c71de1354288c63285
Author: Raphael Isemann <teemperor at gmail.com>
Date: 2020-02-19 (Wed, 19 Feb 2020)
Changed paths:
M lldb/test/API/commands/expression/formatters/TestFormatters.py
M lldb/test/API/commands/expression/formatters/main.cpp
M lldb/test/API/lang/cpp/constructors/TestCppConstructors.py
Log Message:
-----------
[lldb] Make TestFormatters.py not rely on working constructor calls
All calls to operator new in this test fail for me with:
```
expression --show-types -- *(new foo(47))`
Error output:
error: Execution was interrupted, reason: internal c++ exception breakpoint(-6)..
The process has been returned to the state before expression evaluation.
```
As calling operator new isn't the idea of this test, this patch moves that
logic to the binary with some new_* utility functions and explicitly tests
this logic in the constructor test (where we can isolate the failures and
skip them on Linux).
More information about the All-commits
mailing list