From 826fb7bc8e0e6270c5d57edb4ba64e3f303a86ee Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Sat, 9 Mar 2019 15:59:11 +0100 Subject: [PATCH] Equality/assignment mismatch. --- teshsuite/mc/dwarf/dwarf.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/teshsuite/mc/dwarf/dwarf.cpp b/teshsuite/mc/dwarf/dwarf.cpp index f5b41c1588..0e08c601f9 100644 --- a/teshsuite/mc/dwarf/dwarf.cpp +++ b/teshsuite/mc/dwarf/dwarf.cpp @@ -21,7 +21,9 @@ #include "src/mc/Variable.hpp" #include "src/mc/remote/RemoteClient.hpp" -int test_some_array[4][5][6]; +// Test broken with multi-dimensional arrays. See https://sourceware.org/bugzilla/show_bug.cgi?id=22546 +// int test_some_array[4][5][6]; +int test_some_array[4 * 5 * 6]; struct some_struct { int first; int second[4][5]; @@ -92,7 +94,7 @@ static simgrid::mc::Variable* test_global_variable(simgrid::mc::RemoteClient& pr auto i = process.binary_info->types.find(variable->type_id); xbt_assert(i != process.binary_info->types.end(), "Missing type for %s", name); simgrid::mc::Type* type = &i->second; - xbt_assert(type->byte_size = byte_size, "Byte size mismatch for %s", name); + xbt_assert(type->byte_size == byte_size, "Byte size mismatch for %s", name); return variable; } -- 2.20.1