summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/xray/tests/unit/test_helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/lib/xray/tests/unit/test_helpers.h')
-rw-r--r--compiler-rt/lib/xray/tests/unit/test_helpers.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler-rt/lib/xray/tests/unit/test_helpers.h b/compiler-rt/lib/xray/tests/unit/test_helpers.h
index 6c23ce413b9..ff0311e9bd3 100644
--- a/compiler-rt/lib/xray/tests/unit/test_helpers.h
+++ b/compiler-rt/lib/xray/tests/unit/test_helpers.h
@@ -47,6 +47,11 @@ MATCHER_P(HasArg, A, "") {
[this](decltype(A) V) { return V == A; });
}
+MATCHER_P(TSCIs, M, std::string("TSC is ") + ::testing::PrintToString(M)) {
+ return ::testing::Matcher<decltype(arg.TSC)>(M).MatchAndExplain(
+ arg.TSC, result_listener);
+}
+
} // namespace testing
} // namespace xray
} // namespace llvm
OpenPOWER on IntegriCloud