llvm.org GIT mirror llvm / b562d40
[XRay] Fix tests with updated fdr-dump Follow-up to D54022. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@345955 91177308-0d34-0410-b5e6-96231b3b80d8 Dean Michael Berris 1 year, 7 months ago
3 changed file(s) with 12 addition(s) and 12 deletion(s). Raw diff Collapse all Expand all
1111 ; CHECK-NEXT:
1212 ; CHECK-NEXT:
1313 ; CHECK-EMPTY:
14 ; CHECK-NEXT: -
15 ; CHECK-NEXT: -
16 ; CHECK-NEXT: -
17 ; CHECK-NEXT: - xit: #2 delta = +2>
14 ; CHECK-NEXT: - nter: #3 delta = +0>
15 ; CHECK-NEXT: -
16 ; CHECK-NEXT: -
17 ; CHECK-NEXT: -
1818 ; CHECK-EMPTY:
1919 ; CHECK-NEXT: Metadata:
2020 ; CHECK-EMPTY:
21 ; CHECK-NEXT: - 1>
21 ; CHECK-NEXT: - 0>
2222 ; CHECK-NEXT: :
23 ; CHECK-NEXT: - 1>
23 ; CHECK-NEXT: - 24724>
2424
88 ; CHECK-NEXT:
99 ; CHECK-NEXT:
1010 ; CHECK-EMPTY:
11 ; CHECK-NEXT: - 1>
11 ; CHECK-NEXT: - 3146>
1212 ; CHECK-NEXT: :
13 ; CHECK-NEXT: - 1>
13 ; CHECK-NEXT: - 52286>
1414 ; CHECK-NEXT: ***
1515
131131 FunctionRecord R(RecordTypes::ENTER, 1, 2);
132132 ASSERT_FALSE(errorToBool(R.apply(P)));
133133 OS.flush();
134 EXPECT_THAT(Data, Eq("1>"));
134 EXPECT_THAT(Data, Eq("2>"));
135135 }
136136
137137 TEST(FDRRecordPrinterTest, WriteFunctionRecordExit) {
141141 FunctionRecord R(RecordTypes::EXIT, 1, 2);
142142 ASSERT_FALSE(errorToBool(R.apply(P)));
143143 OS.flush();
144 EXPECT_THAT(Data, Eq("1>"));
144 EXPECT_THAT(Data, Eq("2>"));
145145 }
146146
147147 TEST(FDRRecordPrinterTest, WriteFunctionRecordTailExit) {
151151 FunctionRecord R(RecordTypes::TAIL_EXIT, 1, 2);
152152 ASSERT_FALSE(errorToBool(R.apply(P)));
153153 OS.flush();
154 EXPECT_THAT(Data, Eq("1>"));
154 EXPECT_THAT(Data, Eq("2>"));
155155 }
156156
157157 TEST(FDRRecordPrinterTest, WriteFunctionRecordEnterArg) {
161161 FunctionRecord R(RecordTypes::ENTER_ARG, 1, 2);
162162 ASSERT_FALSE(errorToBool(R.apply(P)));
163163 OS.flush();
164 EXPECT_THAT(Data, Eq("1>"));
164 EXPECT_THAT(Data, Eq("2>"));
165165 }
166166
167167 } // namespace