From: Mark Wielaard Date: Mon, 8 Jun 2020 11:36:11 +0000 (+0200) Subject: drd/tests/tsan_unittest.cpp: Fix array CHECK X-Git-Tag: VALGRIND_3_17_0~188 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9f4cd0c47c420e53f7fd667ae4e268f2b30ceffb;p=thirdparty%2Fvalgrind.git drd/tests/tsan_unittest.cpp: Fix array CHECK Use == equality, not = assignment, for CHECK. --- 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);