llvm-project/lldb/packages/Python/lldbsuite/test/functionalities
Pavel Labath 9a652a84b1 Fix TestDisassembleBreakpoint broken by r328488
The first issue was that the test was capturing the "before" disassembly
before launching, and the "after" after. This is a problem because some
of the disassembly will change after we know the load address (e.g. PCs
in call instructions). I fix this by capturing both disassemblies with
the process running.

The second issue was that the refactor in r328488 accidentaly changed
the meaning of the test, as it was no longer disassembling the function
which contained the breakpoint.

While inside, I also modernize the test to use
lldbutil.run_to_source_breakpoint and prevent debug-info replication.

llvm-svn: 328504
2018-03-26 15:17:58 +00:00
..
abbreviation *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
alias
apropos_with_process Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
archives Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
asan [test] Replace some references to Apple-internal bugs 2018-03-13 23:37:11 +00:00
attach_resume Compile the LLDB tests out-of-tree. 2018-01-30 18:29:16 +00:00
avoids-fd-leak [testsuite] Reintroduce test to check leaking. 2018-02-12 18:06:34 +00:00
backticks *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
breakpoint [dotest] Clean up test folder clean-up 2018-03-16 12:04:46 +00:00
command_history *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
command_regex *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
command_script Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
command_script_alias *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
command_script_immediate_output [dotest] Clean up test folder clean-up 2018-03-16 12:04:46 +00:00
command_source Implement interactive command interruption 2017-10-05 23:41:28 +00:00
completion Make TestCompletion work on windows 2018-03-09 14:32:16 +00:00
conditional_break Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
darwin_log Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
data-formatter [ObjC] Fix the NSConcreteData formatter and test it 2018-02-22 23:48:21 +00:00
dead-strip Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
disassembly Fix TestDisassembleBreakpoint broken by r328488 2018-03-26 15:17:58 +00:00
dynamic_value_child_count Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
embedded_interpreter Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
exec [dotest] Clean up test folder clean-up 2018-03-16 12:04:46 +00:00
expr-doesnt-deadlock Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
fat_archives Compile the LLDB tests out-of-tree. 2018-01-30 18:29:16 +00:00
format Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
frame-diagnose Enforce that tests building with buildDefault set NO_DEBUG_INFO_TESTCASE 2018-01-30 17:02:42 +00:00
frame-language Compile the LLDB tests out-of-tree. 2018-01-30 18:29:16 +00:00
frame_var Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
frame_var_scope Fix an issue where frame variable -s <varname> would not show the scope even though the user asked for it 2016-10-26 19:17:49 +00:00
gdb_remote_client Add a test for setting the load address of a module with differing physical/virtual addresses 2018-03-26 11:45:32 +00:00
history Fix !N and !-N commands and add a test case. 2017-04-19 23:21:04 +00:00
inferior-assert Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
inferior-changed Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
inferior-crashing Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
inline-stepping Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
jitloader_gdb Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
launch_with_shellexpand Compile the LLDB tests out-of-tree. 2018-01-30 18:29:16 +00:00
load_unload Only throw -fPIC when building a shared library 2018-02-08 23:10:29 +00:00
longjmp Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
memory Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
mtc/simple Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
multidebugger_commands *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
nested_alias Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
non-overlapping-index-variable-i [test] Fix a test that never compiled under -fmodules 2018-01-25 21:20:29 +00:00
nosucharch Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
object-file *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
paths *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
platform Add a missing return in SBPlatform::IsConnected and test 2018-03-13 21:06:05 +00:00
plugins Compile the LLDB tests out-of-tree. 2018-01-30 18:29:16 +00:00
postmortem Last batch of test-tree cleaning changes 2018-03-21 15:29:32 +00:00
pre_run_dylibs Only throw -fPIC when building a shared library 2018-02-08 23:10:29 +00:00
process_attach Fix a couple of more tests to not create files in the source tree 2018-02-21 15:33:53 +00:00
process_group Fix a couple of more tests to not create files in the source tree 2018-02-21 15:33:53 +00:00
process_launch Fix TestProcessLaunch breakage on MacOS 2018-03-15 15:21:54 +00:00
process_save_core Compile the LLDB tests out-of-tree. 2018-01-30 18:29:16 +00:00
ptr_refs Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
recursion Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
register [test] Skip a test when using an out-of-tree debugserver 2018-03-08 19:46:39 +00:00
rerun Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
return-value Added lldbutil.run_to_name_breakpoint and use it in one test. 2018-02-01 21:35:50 +00:00
set-data Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
signal Rewrite the flaky test_restart_bug test in a more deterministic way 2018-02-08 10:37:23 +00:00
single-quote-in-filename-to-lldb Next batch of test-tree-cleaning changes 2018-03-15 13:47:09 +00:00
source-map @skipUnlessDarwin TestTargetSourceMap 2018-03-15 09:16:15 +00:00
step-avoids-no-debug Compile the LLDB tests out-of-tree. 2018-01-30 18:29:16 +00:00
stop-hook Compile the LLDB tests out-of-tree. 2018-01-30 18:29:16 +00:00
target_command Compile the LLDB tests out-of-tree. 2018-01-30 18:29:16 +00:00
testid add a simple test case to validate test id() 2016-10-03 22:49:13 +00:00
thread Fix some tests for PPC64le architecture 2018-03-20 12:46:33 +00:00
tsan Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
tty Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
type_completion Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
type_lookup Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
ubsan Fix TestUbsanBasic 2018-02-23 05:03:10 +00:00
unwind Add and fix some tests for PPC64 2018-03-26 12:42:07 +00:00
value_md5_crash Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
watchpoint Add and fix some tests for PPC64 2018-03-26 12:42:07 +00:00