aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWalter Erquinigo <wallace@fb.com>2020-04-10 08:23:42 -0700
committerWalter Erquinigo <wallace@fb.com>2020-04-14 12:18:58 -0700
commitcea112f422cea3e6fab7cefffef2e09eadec279e (patch)
tree3f5fc709ff2d087c822fc4a68006ec14e0c7f826
parent4d9fac6da5501727eaf19a8d50044a5adcbd433d (diff)
downloadllvm-cea112f422cea3e6fab7cefffef2e09eadec279e.zip
llvm-cea112f422cea3e6fab7cefffef2e09eadec279e.tar.gz
llvm-cea112f422cea3e6fab7cefffef2e09eadec279e.tar.bz2
[lldb] Fix a typo in a test name
Summary: Removing the Test prefix from the file name and its usages. The standard is using only Test as a suffix. This was correctly pointed out in https://reviews.llvm.org/D77444. Reviewers: labath, clayborg Subscribers: mgorny, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D77878
-rw-r--r--lldb/unittests/API/CMakeLists.txt2
-rw-r--r--lldb/unittests/API/SBCommandInterpreterTest.cpp (renamed from lldb/unittests/API/TestSBCommandInterpreterTest.cpp)8
2 files changed, 5 insertions, 5 deletions
diff --git a/lldb/unittests/API/CMakeLists.txt b/lldb/unittests/API/CMakeLists.txt
index 50ec47b..6f71165 100644
--- a/lldb/unittests/API/CMakeLists.txt
+++ b/lldb/unittests/API/CMakeLists.txt
@@ -1,5 +1,5 @@
add_lldb_unittest(APITests
- TestSBCommandInterpreterTest.cpp
+ SBCommandInterpreterTest.cpp
LINK_LIBS
liblldb
diff --git a/lldb/unittests/API/TestSBCommandInterpreterTest.cpp b/lldb/unittests/API/SBCommandInterpreterTest.cpp
index 6194b65..d117c08 100644
--- a/lldb/unittests/API/TestSBCommandInterpreterTest.cpp
+++ b/lldb/unittests/API/SBCommandInterpreterTest.cpp
@@ -1,4 +1,4 @@
-//===-- TestSBCommandInterpreterTest.cpp ----------------------------------===//
+//===-- SBCommandInterpreterTest.cpp ------------------------===----------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -17,7 +17,7 @@
using namespace lldb;
-class TestSBCommandInterpreterTest : public testing::Test {
+class SBCommandInterpreterTest : public testing::Test {
protected:
void SetUp() override {
SBDebugger::Initialize();
@@ -44,7 +44,7 @@ private:
std::string m_message;
};
-TEST_F(TestSBCommandInterpreterTest, SingleWordCommand) {
+TEST_F(SBCommandInterpreterTest, SingleWordCommand) {
// We first test a command without autorepeat
DummyCommand dummy("It worked");
m_interp.AddCommand("dummy", &dummy, /*help=*/nullptr);
@@ -79,7 +79,7 @@ TEST_F(TestSBCommandInterpreterTest, SingleWordCommand) {
}
}
-TEST_F(TestSBCommandInterpreterTest, MultiWordCommand) {
+TEST_F(SBCommandInterpreterTest, MultiWordCommand) {
auto command = m_interp.AddMultiwordCommand("multicommand", /*help=*/nullptr);
// We first test a subcommand without autorepeat
DummyCommand subcommand("It worked again");