llvm.org GIT mirror llvm / e46be78
DIEHashTest: Correct the order of operands to the TEST macro And add the 'Test' suffix so the test case name matches the file name. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193119 91177308-0d34-0410-b5e6-96231b3b80d8 David Blaikie 7 years ago
1 changed file(s) with 7 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
1616 using namespace llvm;
1717
1818 namespace {
19 TEST(Data1, DIEHash) {
19 TEST(DIEHashTest, Data1) {
2020 DIEHash Hash;
2121 DIE Die(dwarf::DW_TAG_base_type);
2222 DIEInteger Size(4);
2525 ASSERT_EQ(0x1AFE116E83701108ULL, MD5Res);
2626 }
2727
28 TEST(TrivialType, DIEHash) {
28 TEST(DIEHashTest, TrivialType) {
2929 // A complete, but simple, type containing no members and defined on the first
3030 // line of a file.
3131 DIE Unnamed(dwarf::DW_TAG_structure_type);
4141 ASSERT_EQ(0x715305ce6cfd9ad1ULL, MD5Res);
4242 }
4343
44 TEST(NamedType, DIEHash) {
44 TEST(DIEHashTest, NamedType) {
4545 // A complete named type containing no members and defined on the first line
4646 // of a file.
4747 DIE Foo(dwarf::DW_TAG_structure_type);
5656 ASSERT_EQ(0xd566dbd2ca5265ffULL, MD5Res);
5757 }
5858
59 TEST(NamespacedType, DIEHash) {
59 TEST(DIEHashTest, NamespacedType) {
6060 // A complete named type containing no members and defined on the first line
6161 // of a file.
6262 DIE CU(dwarf::DW_TAG_compile_unit);
8383 ASSERT_EQ(0x7b80381fd17f1e33ULL, MD5Res);
8484 }
8585
86 TEST(TypeWithMember, DIEHash) {
86 TEST(DIEHashTest, TypeWithMember) {
8787 DIE Unnamed(dwarf::DW_TAG_structure_type);
8888 DIEInteger Four(4);
8989 Unnamed.addValue(dwarf::DW_AT_byte_size, dwarf::DW_FORM_data1, &Four);
111111 ASSERT_EQ(0x5646aa436b7e07c6ULL, MD5Res);
112112 }
113113
114 TEST(ReusedType, DIEHash) {
114 TEST(DIEHashTest, ReusedType) {
115115 DIE Unnamed(dwarf::DW_TAG_structure_type);
116116 DIEInteger Eight(8);
117117 Unnamed.addValue(dwarf::DW_AT_byte_size, dwarf::DW_FORM_data1, &Eight);
148148 ASSERT_EQ(0x3a7dc3ed7b76b2f8ULL, MD5Res);
149149 }
150150
151 TEST(RecursiveType, DIEHash) {
151 TEST(DIEHashTest, RecursiveType) {
152152 DIE Foo(dwarf::DW_TAG_structure_type);
153153 DIEInteger One(1);
154154 Foo.addValue(dwarf::DW_AT_byte_size, dwarf::DW_FORM_data1, &One);