summaryrefslogtreecommitdiff
path: root/lldb/test/Shell/Error
AgeCommit message (Collapse)Author
2025-10-30[NFCI][lldb][test] Fix mismatched C/C++ substitutions (#165773)Raul Tambre
Most of the cases were where a C++ file was being compiled with the C substitution. There were a few cases of the opposite though. LLDB seems to be the only real culprit in the LLVM codebase for these mismatches. Rest of the LLVM presumably sticks at least language-specific options in the common substitutions making the mistakes immediately apparent. I found these by using Clang frontend configuration files containing language-specific options for both C and C++ (e.g. `-std=c2y` and `-std=c++26`).
2022-08-24[LLDB] Clean up after command failsZequan Wu
`CommandObject::CheckRequirements()` requires m_exe_ctx being cleaned up. Differential Revision: https://reviews.llvm.org/D132397
2021-03-29[lldb] Don't search for system specific strings in assert.testRaphael Isemann
Commit 6bc1e69de270db8d7191200f54158e4192f997ba changed the search string to also check for the generated strings that surround the plain assert: Assertion `false && "lldb-test assert"' failed ^^^^^^^^^ This causes the test to fail on setups where the generated assert message looks different. E.g., on macOS the generated message looks like this: Assertion failed: (false && "lldb_assert failed"), function lldb_assert This reverts the old behaviour of just checking for the actual string we have inside LLDB.
2021-03-29[lldb] Fix Error/assert.test regression with symbolsJan Kratochvil
LLDB on Linux built with symbols is showing this error. Without symbols it still PASSes: lldb-test: .../lldb/source/Utility/LLDBAssert.cpp:29: void lldb_private::lldb_assert(bool, const char *, const char *, const char *, unsigned int): Assertion `false && "lldb_assert failed"' failed. With symbols it FAILs: lldb-test: .../lldb/tools/lldb-test/lldb-test.cpp:1086: int opts::assert::lldb_assert(lldb_private::Debugger &): Assertion `false && "lldb-test assert"' failed. Differential Revision: https://reviews.llvm.org/D99462
2021-03-19[lldb] Update assert.test to be less strictJonas Devlieghere
Be less strict when checking for the assert substring.
2021-03-19[lldb] Call os_log_fault on lldb_assertJonas Devlieghere
Call `os_log_fault` when an lldb assert fails. We piggyback off `LLVM_SUPPORT_XCODE_SIGNPOSTS`, which also depends on `os_log`, to avoid having to introduce another CMake check and corresponding define. This patch also adds a small test using lldb-test that verifies we abort with a "regular" assertion when asserts are enabled. Differential revision: https://reviews.llvm.org/D98987