From 9f4cd0c47c420e53f7fd667ae4e268f2b30ceffb Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Mon, 8 Jun 2020 13:36:11 +0200 Subject: [PATCH] drd/tests/tsan_unittest.cpp: Fix array CHECK Use == equality, not = assignment, for CHECK. --- drd/tests/tsan_unittest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drd/tests/tsan_unittest.cpp b/drd/tests/tsan_unittest.cpp index f68cac4eed..ab42740515 100644 --- a/drd/tests/tsan_unittest.cpp +++ b/drd/tests/tsan_unittest.cpp @@ -6619,7 +6619,7 @@ void Getter() { for (int i = 1; i <= N; i++) { int res = q.Get(); if (res > 0) { - CHECK(array[res] = res * res); + CHECK(array[res] == res * res); non_zero_received++; } usleep(1000); -- 2.47.3