IR: LLVMContextTest => DebugTypeODRUniquingTest, NFC

The second test in this file is actually testing DICompositeType API,
not LLVMContext API (after r266742 moved it to a higher level).  This
really doesn't make sense in an LLVMContextTest.  Rename the tests
before adding more.

llvm-svn: 266764
This commit is contained in:
Duncan P. N. Exon Smith 2016-04-19 17:11:06 +00:00
parent 6fa512cecf
commit 1561709d57
2 changed files with 4 additions and 4 deletions

View File

@ -11,12 +11,12 @@ set(IRSources
ConstantRangeTest.cpp
ConstantsTest.cpp
DebugInfoTest.cpp
DebugTypeODRUniquingTest.cpp
DominatorTreeTest.cpp
FunctionTest.cpp
IRBuilderTest.cpp
InstructionsTest.cpp
IntrinsicsTest.cpp
LLVMContextTest.cpp
LegacyPassManagerTest.cpp
MDBuilderTest.cpp
MetadataTest.cpp

View File

@ -1,4 +1,4 @@
//===- LLVMContextTest.cpp - LLVMContext unit tests -----------------------===//
//===- DebugTypeODRUniquingTest.cpp - Debug type ODR uniquing tests -------===//
//
// The LLVM Compiler Infrastructure
//
@ -14,7 +14,7 @@ using namespace llvm;
namespace {
TEST(LLVMContextTest, enableDebugTypeODRUniquing) {
TEST(DebugTypeODRUniquingTest, enableDebugTypeODRUniquing) {
LLVMContext Context;
EXPECT_FALSE(Context.isODRUniquingDebugTypes());
Context.enableDebugTypeODRUniquing();
@ -23,7 +23,7 @@ TEST(LLVMContextTest, enableDebugTypeODRUniquing) {
EXPECT_FALSE(Context.isODRUniquingDebugTypes());
}
TEST(LLVMContextTest, getOrInsertODRUniquedType) {
TEST(DebugTypeODRUniquingTest, getODRType) {
LLVMContext Context;
MDString &UUID = *MDString::get(Context, "string");