]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
drd/tests/tsan_unittest.cpp: Fix array CHECK
authorMark Wielaard <mark@klomp.org>
Mon, 8 Jun 2020 11:36:11 +0000 (13:36 +0200)
committerMark Wielaard <mark@klomp.org>
Mon, 8 Jun 2020 11:36:29 +0000 (13:36 +0200)
Use == equality, not = assignment, for CHECK.

drd/tests/tsan_unittest.cpp

index f68cac4eedd38d012b696ad40a4d228480038b64..ab42740515a2d98f7839b1292492e108072db0f5 100644 (file)
@@ -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);