teak-llvm/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint
Pavel Labath 5c17454cd6 Make destructor breakpoint location test more resilient
Summary:
The original breakpoint location test was failing for linux, because the compilers here tend to
merge the full-object and subobject destructors even at -O0 (as a result, we are getting only 2
breakpoint locations, and not 4 as the test expected. The fixup in r266164 substantially weakened
the test, as it now did not check whether both kinds of destructors were being found.

Because of these contraints, I have altered the logic of the test. It sets the
breakpoint by name, and then independently verifies that the breakpoint is set on the correct
demangled symbol name (which is not very meaningful since both kinds of destructors demangle to
the same name) *and* the correct symbol address (which is obtained by looking up the mangled
symbol name).

Reviewers: clayborg

Subscribers: ovyalov, zturner, lldb-commits

Differential Revision: http://reviews.llvm.org/D19052

llvm-svn: 266416
2016-04-15 09:11:22 +00:00
..
address_breakpoints Add the ability (through the SB API & command line) to specify an address 2015-11-17 03:39:13 +00:00
breakpoint_case_sensitivity xfail case sensitivity test on Linux. 2016-02-24 22:41:04 +00:00
breakpoint_command Remove expectedFailureWindows decorator. 2016-02-08 19:34:59 +00:00
breakpoint_conditions Support Linux on SystemZ as platform 2016-04-14 14:28:34 +00:00
breakpoint_ids Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
breakpoint_ignore_count Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
breakpoint_in_delayslot A number of improvements to decorator conditionals. 2016-02-08 19:35:18 +00:00
breakpoint_language Make the language specifier to "break set" actually filter the names by their language. So for 2015-11-06 22:48:59 +00:00
breakpoint_locations Remove expectedFailureWindows decorator. 2016-02-08 19:34:59 +00:00
breakpoint_options Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
breakpoint_set_restart Fix breakpoint_set_restart test for Windows 2016-04-12 22:45:03 +00:00
comp_dir_symlink Remove skipIfHostPlatform and skipUnlessHostPlatform decorators. 2016-02-09 00:36:27 +00:00
consecutive_breakpoints Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
cpp Make destructor breakpoint location test more resilient 2016-04-15 09:11:22 +00:00
cpp_exception Remove expectedFailureWindows decorator. 2016-02-08 19:34:59 +00:00
debugbreak 'int' is reported as an exception on OS X not as a signal. I don't think 2016-04-12 17:04:12 +00:00
dummy_target_breakpoints Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
inlined_breakpoints Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
objc Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00