|
From: Mark W. <ma...@so...> - 2020-06-08 11:38:10
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=9f4cd0c47c420e53f7fd667ae4e268f2b30ceffb commit 9f4cd0c47c420e53f7fd667ae4e268f2b30ceffb Author: Mark Wielaard <ma...@kl...> Date: Mon Jun 8 13:36:11 2020 +0200 drd/tests/tsan_unittest.cpp: Fix array CHECK Use == equality, not = assignment, for CHECK. Diff: --- 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); |