From 79aed89ea3af606901ff716c38796bee43a765c0 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 16 Aug 2021 13:08:35 +0200 Subject: [PATCH] tsan: fix unused var warnings in a test Reviewed By: melver Differential Revision: https://reviews.llvm.org/D108118 --- compiler-rt/lib/tsan/tests/unit/tsan_trace_test.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler-rt/lib/tsan/tests/unit/tsan_trace_test.cpp b/compiler-rt/lib/tsan/tests/unit/tsan_trace_test.cpp index 6e59832..571fc0a 100644 --- a/compiler-rt/lib/tsan/tests/unit/tsan_trace_test.cpp +++ b/compiler-rt/lib/tsan/tests/unit/tsan_trace_test.cpp @@ -152,6 +152,7 @@ TEST(Trace, RestoreMutexLock) { uptr tag = kExternalTagNone; bool res = RestoreStack(thr->tid, v3::EventType::kLock, thr->sid, thr->epoch, 0x5001, 0, 0, &stk, &mset, &tag); + CHECK(res); CHECK_EQ(stk.size, 2); CHECK_EQ(stk.trace[0], 0x1000); CHECK_EQ(stk.trace[1], 0x4002); @@ -194,6 +195,7 @@ TEST(Trace, MultiPart) { bool res = RestoreStack(thr->tid, v3::EventType::kAccessExt, thr->sid, thr->epoch, 0x3000, 8, kAccessRead, &stk, &mset, &tag); + CHECK(res); CHECK_EQ(stk.size, 4); CHECK_EQ(stk.trace[0], 0x1000); CHECK_EQ(stk.trace[1], 0x2000); -- 2.7.4