hanchenye-llvm-project/lldb
Pavel Labath a9f8b0d1a9 Avoid dirtying the source tree in breakpoint command tests
Summary:
The paralelization patch exposed a bunch of cases where we were still
touching the source tree (as these tests were now stepping on each
others toes and being flaky).

This patch removes such issues from breakpoint command tests. Since the
only reason they were creating files was to indirectly test whether the
breakpoint commands got executed (and plumbing the full build tree path
to all places that needed it would be messy) I decided to modify the
tests to check for a different side effect instead: modification of a
global variable. This also makes the code simpler as checking the value
of the global variable is easier, and there is nothing to clean up.

As the tests aren't really doing anything debug-info related, I took the
opportunity to also mark them as NO_DEBUG_INFO_TESTCASEs.

Reviewers: jingham, aprantl

Subscribers: lldb-commits

Differential Revision: https://reviews.llvm.org/D43464

llvm-svn: 325570
2018-02-20 10:24:37 +00:00
..
cmake [lldb] Set component when invoking add_llvm_install_targets 2017-12-13 01:14:27 +00:00
docs Compile the LLDB tests out-of-tree. 2018-01-30 18:29:16 +00:00
examples Fixed up to use a class for the commands, renamed the commands and added a way to just dump the compile unit full paths and optionally their support files with the new "dump-files"command. 2017-11-16 17:14:48 +00:00
include/lldb Add SBDebugger::GetBuildConfiguration and use it to skip an XML test 2018-02-19 15:06:28 +00:00
lit Handle typeof() expressions 2018-02-20 10:15:08 +00:00
lldb.xcodeproj Remove the pubnames support from the Xcode project. 2018-02-12 20:25:37 +00:00
lldb.xcworkspace
packages/Python/lldbsuite Avoid dirtying the source tree in breakpoint command tests 2018-02-20 10:24:37 +00:00
resources
scripts Add SBDebugger::GetBuildConfiguration and use it to skip an XML test 2018-02-19 15:06:28 +00:00
source Handle typeof() expressions 2018-02-20 10:15:08 +00:00
test [cmake] Darwin: Copy in the system debugserver if needed 2018-02-13 23:05:46 +00:00
third_party/Python/module
tools Add DEBUGSERVER_PATH to the cache so it'll be available for tests. 2018-02-17 23:06:15 +00:00
unittests Fix TestStopReplyContainsThreadPcs on 32-bit x86 (pr36013) 2018-02-19 15:42:48 +00:00
utils
www [docs] Update docs for cmake options LLDB_TEST_C_COMPILER and LLDB_TEST_CXX_COMPILER 2018-02-08 05:11:17 +00:00
.arcconfig
.clang-format
.gitignore [dotest] Remove crashinfo hook 2018-01-10 10:18:47 +00:00
CMakeLists.txt [cmake] Fix LLDB_CODESIGN_IDENTITY logic. 2018-02-17 19:17:21 +00:00
CODE_OWNERS.txt Remove Sean Callanan from the CODE_OWNERS, he won't have time 2017-11-01 01:38:42 +00:00
INSTALL.txt
LICENSE.TXT
use_lldb_suite_root.py