summaryrefslogtreecommitdiff
path: root/lldb/test/Shell/Recognizer/assert.test
AgeCommit message (Collapse)Author
2023-05-10When the Debugger runs HandleProcessEvent it should allowJim Ingham
selecting the "Most relevant" frame. If you don't do that, then the correct frame gets selected, but it happens AFTER the frame info gets printed in the stop message, so you don't see the selected frame. The test for this hid the issue because it ran `frame info` and checked the result of that. That happens after the recognizer selects the frame, and so it was right. But if the recognizer is working correctly it will have already done the same printing in the stop message, and this way we also verify that the stop message was right. Differential Revision: https://reviews.llvm.org/D150315
2022-12-12[lldb] Remove redundant XFAILPaul Robinson
The test is `UNSUPPORTED: system-linux` so the XFAIL for linux is redundant. Part of the project to eliminate special handling for triples in lit expressions. Differential Revision: https://reviews.llvm.org/D139734
2022-06-21[lldb] Skip Recognizer/assert.test on linuxPavel Labath
-> PR56144
2020-12-20[lldb] [test] Update test status for NetBSDMichał Górny
2020-11-05[lldb] Enable FreeBSDRemote plugin by default and update test statusMichał Górny
The new FreeBSDRemote plugin has reached feature parity on i386 and amd64 targets. Use it by default on these architectures, while allowing the use of the legacy plugin via FREEBSD_LEGACY_PLUGIN envvar. Revisit the method of switching plugins. Apparently, the return value of PlatformFreeBSD::CanDebugProcess() is what really decides whether the legacy or the new plugin is used. Update the test status. Reenable the tests that were previously disabled on FreeBSD and do not cause hangs or are irrelevant to FreeBSD. Mark all tests that fail reliably as expectedFailure. For now, tests that are flaky (i.e. produce unstable results) are left enabled and cause unpredictable test failures. Differential Revision: https://reviews.llvm.org/D90757
2020-05-13[LLDB] Fix typo in xfail decorator assert.testMuhammad Omair Javaid
Fix a typo in earlier xfailed assert.test replace // with #.
2020-05-13[LLDB] Mark some xfails for arm-linuxMuhammad Omair Javaid
This patch marks following tests as xfail for arm-linux target. lldb/test/API/functionalities/load_using_paths/TestLoadUsingPaths.py lldb/test/API/python_api/thread/TestThreadAPI.py lldb/test/Shell/Recognizer/assert.test Bugs have been filed for all of them for the corresponding failing component.
2020-02-11[lldb/test] Add alternate symbol to StackFrame RecognizerMed Ismail Bennani
This reimplements commit 6b2979c12300b90a1e69791d43ee9cff14f4265e and updates the tests to reflect the addition of the alternate symbol attribute. Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
2020-02-10Revert "[lldb] Fix+re-enable Assert StackFrame Recognizer on Linux"Davide Italiano
This reverts commit 1a39f1b966a8d8f15ed0d5a832d5097cccefe93b as it breaks macOS.
2020-02-10[lldb] Fix+re-enable Assert StackFrame Recognizer on LinuxJan Kratochvil
D73303 was failing on Fedora Linux and so it was disabled by Skip the AssertFrameRecognizer test for Linux. I find no easy way how to find out if it gets recognized as `__assert_fail` or `__GI___assert_fail` as during `Process` ctor libc.so.6 is not yet loaded by the debuggee. DWARF symbol `__GI___assert_fail` overrides the ELF symbol `__assert_fail`. While external debug info (=DWARF) gets disabled for testsuite (D55859) that sure does not apply for real world usage. Differential Revision: https://reviews.llvm.org/D74252
2020-02-08Revert "[lldb] Fix+re-enable Assert StackFrame Recognizer on Linux"Jan Kratochvil
This reverts commit cf1046c716b33ed449aa8fc26376864917c63c25. Reverted: https://reviews.llvm.org/D74252 It fixed testsuite but broke real world functionality where is not used: settings set symbols.enable-external-lookup false
2020-02-07[lldb] Fix+re-enable Assert StackFrame Recognizer on LinuxJan Kratochvil
D73303 was failing on Fedora Linux and so it was disabled by Skip the AssertFrameRecognizer test for Linux. On Fedora 30 x86_64 I have: $ readelf -Ws /lib64/libc.so.6 |grep '^Symbol\|.*assert_fail' Symbol table '.dynsym' contains 2362 entries: 630: 0000000000030520 70 FUNC GLOBAL DEFAULT 14 __assert_fail@@GLIBC_2.2.5 Symbol table '.symtab' contains 22711 entries: 922: 000000000002275a 15 FUNC LOCAL DEFAULT 14 __assert_fail_base.cold 18044: 0000000000030520 70 FUNC LOCAL DEFAULT 14 __GI___assert_fail 20081: 00000000000303a0 370 FUNC LOCAL DEFAULT 14 __assert_fail_base 21766: 0000000000030520 70 FUNC GLOBAL DEFAULT 14 __assert_fail The patch should never expect __GI___assert_fail: .symtab can be present or not but that should not change that __assert_fail always wins - it is always present from .dynsym and it can never be overriden by __GI___assert_fail as __GI___assert_fail has only local binding. Global binding is preferred since D63540. External debug info symbols do not matter since D55859 (and DWARF should never be embedded in system libc.so.6). Differential Revision: https://reviews.llvm.org/D74252
2020-02-07[lldb/test] Skip the AssertFrameRecognizer test for LinuxMed Ismail Bennani
This patch skips the AssertFrameRecognizer test for Linux since it appears to fail on certain distributions (AFAIK Fedora & ArchLinux). The failure happen because the thread don't set the current frame to the most relevant one. So the stopped location doesn't match with what the test is expecting. The test will be enabled again after I'll be able to reproduce the failure on one of those platform and fix the issue. Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
2020-02-06[lldb/Target] Add Assert StackFrame RecognizerMed Ismail Bennani
When a thread stops, this checks depending on the platform if the top frame is an abort stack frame. If so, it looks for an assert stack frame in the upper frames and set it as the most relavant frame when found. To do so, the StackFrameRecognizer class holds a "Most Relevant Frame" and a "cooked" stop reason description. When the thread is about to stop, it checks if the current frame is recognized, and if so, it fetches the recognized frame's attributes and applies them. rdar://58528686 Differential Revision: https://reviews.llvm.org/D73303 Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
2020-02-05Revert "[lldb/Target] Add Assert StackFrame Recognizer"Pavel Labath
This reverts commit 2b7f32892b76cdfbe075300a5bf4a52e1b674bc7 because of test failures due to dangling pointers.
2020-02-05[lldb/Target] Add Assert StackFrame RecognizerMed Ismail Bennani
When a thread stops, this checks depending on the platform if the top frame is an abort stack frame. If so, it looks for an assert stack frame in the upper frames and set it as the most relavant frame when found. To do so, the StackFrameRecognizer class holds a "Most Relevant Frame" and a "cooked" stop reason description. When the thread is about to stop, it checks if the current frame is recognized, and if so, it fetches the recognized frame's attributes and applies them. rdar://58528686 Differential Revision: https://reviews.llvm.org/D73303 Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
2020-01-28Revert "[lldb/Target] Add Assert StackFrame Recognizer"Med Ismail Bennani
This reverts commit 03a6b858fde5c644ec16b1fddd8e10aa9ef3f0ad. The test doesn't pass on Debian.
2020-01-28[lldb/Target] Add Assert StackFrame RecognizerMed Ismail Bennani
When a thread stops, this checks depending on the platform if the top frame is an abort stack frame. If so, it looks for an assert stack frame in the upper frames and set it as the most relavant frame when found. To do so, the StackFrameRecognizer class holds a "Most Relevant Frame" and a "cooked" stop reason description. When the thread is about to stop, it checks if the current frame is recognized, and if so, it fetches the recognized frame's attributes and applies them. rdar://58528686 Differential Revision: https://reviews.llvm.org/D73303 Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>