summaryrefslogtreecommitdiffstats
path: root/lldb/unittests/tools
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-07-18 17:06:06 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-07-18 17:06:06 +0000
commit37fed664022e07c2293b674e9c9d2b50aac547ba (patch)
treee90f3c379baa27e0b44b9adfee00eccfabb84304 /lldb/unittests/tools
parentabbc3ff4ad9e744b89f1bd8755f4f56ee4539393 (diff)
downloadbcm5719-llvm-37fed664022e07c2293b674e9c9d2b50aac547ba.tar.gz
bcm5719-llvm-37fed664022e07c2293b674e9c9d2b50aac547ba.zip
[LLDB] Remove lldb-mi
As discussed on the mailing list [1], this patch removes the lldb-mi tool and its tests from the LLDB repository. We moved lldb-mi into a separate repository on GitHub [2] for downstream users or maintainers to build and package. [1] http://lists.llvm.org/pipermail/lldb-dev/2019-July/015103.html [2] https://github.com/lldb-tools/lldb-mi Differential revision: https://reviews.llvm.org/D64255 llvm-svn: 366465
Diffstat (limited to 'lldb/unittests/tools')
-rw-r--r--lldb/unittests/tools/CMakeLists.txt3
-rw-r--r--lldb/unittests/tools/lldb-mi/CMakeLists.txt2
-rw-r--r--lldb/unittests/tools/lldb-mi/utils/CMakeLists.txt13
-rw-r--r--lldb/unittests/tools/lldb-mi/utils/StringTest.cpp32
4 files changed, 0 insertions, 50 deletions
diff --git a/lldb/unittests/tools/CMakeLists.txt b/lldb/unittests/tools/CMakeLists.txt
index 4c657866ca2..055fc6e6f5d 100644
--- a/lldb/unittests/tools/CMakeLists.txt
+++ b/lldb/unittests/tools/CMakeLists.txt
@@ -1,6 +1,3 @@
-if(LLDB_TOOL_LLDB_MI_BUILD)
- add_subdirectory(lldb-mi)
-endif()
if(LLDB_TOOL_LLDB_SERVER_BUILD)
add_subdirectory(lldb-server)
endif()
diff --git a/lldb/unittests/tools/lldb-mi/CMakeLists.txt b/lldb/unittests/tools/lldb-mi/CMakeLists.txt
deleted file mode 100644
index 1d211628bba..00000000000
--- a/lldb/unittests/tools/lldb-mi/CMakeLists.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-include_directories(${LLDB_SOURCE_DIR}/tools/lldb-mi)
-add_subdirectory(utils)
diff --git a/lldb/unittests/tools/lldb-mi/utils/CMakeLists.txt b/lldb/unittests/tools/lldb-mi/utils/CMakeLists.txt
deleted file mode 100644
index 7615dd7a662..00000000000
--- a/lldb/unittests/tools/lldb-mi/utils/CMakeLists.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-add_library(lldb-mi-utils OBJECT
- ${LLDB_SOURCE_DIR}/tools/lldb-mi/MIUtilString.cpp
- )
-
-add_lldb_unittest(LLDBMiUtilTests
- $<TARGET_OBJECTS:lldb-mi-utils>
- StringTest.cpp
-
- LINK_COMPONENTS
- Support
- )
-
-set_target_properties(lldb-mi-utils PROPERTIES FOLDER "lldb libraries")
diff --git a/lldb/unittests/tools/lldb-mi/utils/StringTest.cpp b/lldb/unittests/tools/lldb-mi/utils/StringTest.cpp
deleted file mode 100644
index 9f76f4601a0..00000000000
--- a/lldb/unittests/tools/lldb-mi/utils/StringTest.cpp
+++ /dev/null
@@ -1,32 +0,0 @@
-//===-- StringTest.cpp ------------------------------------------*- C++ -*-===//
-//
-// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-// See https://llvm.org/LICENSE.txt for license information.
-// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-//
-//===----------------------------------------------------------------------===//
-
-#include "MIUtilString.h"
-#include "gtest/gtest.h"
-
-TEST(StringTest, ConstructFromNullptr) {
- auto str = CMIUtilString(nullptr);
- EXPECT_TRUE(str.empty());
- EXPECT_NE(nullptr, str.c_str());
- EXPECT_EQ(CMIUtilString(""), str);
-}
-
-TEST(StringTest, AssignNullptr) {
- CMIUtilString str;
- str = nullptr;
- EXPECT_TRUE(str.empty());
- EXPECT_NE(nullptr, str.c_str());
- EXPECT_EQ(CMIUtilString(""), str);
-}
-
-TEST(StringTest, IsAllValidAlphaAndNumeric) {
- EXPECT_TRUE(CMIUtilString::IsAllValidAlphaAndNumeric("123abc"));
- EXPECT_FALSE(CMIUtilString::IsAllValidAlphaAndNumeric(""));
- EXPECT_FALSE(CMIUtilString::IsAllValidAlphaAndNumeric(nullptr));
-}
-
OpenPOWER on IntegriCloud