From 9635099c5aa3122110e84ba8ea3b999342011ba5 Mon Sep 17 00:00:00 2001 From: Erik Lindahl Date: Tue, 5 Aug 2014 12:15:39 +0200 Subject: [PATCH] Changed names of test files to avoid Fujitsu compiler bug The Fujitsu compilers use an older version of the Clang parser where certain static class initializers (e.g. strings) are put in a static initializer function stub named after the file and class. When the first such class has identical names in two different files where the last part of the name is identical, this will result in clashing symbols at link time. Working around this would require an extra (unused) class definition in each file that would pollute the code, so for now we merely rename the files where it occurs and hope that the compilers will be fixed (a bug report has been submitted). Change-Id: If552a06950facb0cdbb6e34e0b324aafa6083ae8 --- src/testutils/tests/CMakeLists.txt | 4 ++-- src/testutils/tests/{refdata.cpp => refdata_tests.cpp} | 0 .../tests/{testasserts.cpp => testasserts_tests.cpp} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename src/testutils/tests/{refdata.cpp => refdata_tests.cpp} (100%) rename src/testutils/tests/{testasserts.cpp => testasserts_tests.cpp} (100%) diff --git a/src/testutils/tests/CMakeLists.txt b/src/testutils/tests/CMakeLists.txt index 75008d6bfb..045e7c5616 100644 --- a/src/testutils/tests/CMakeLists.txt +++ b/src/testutils/tests/CMakeLists.txt @@ -33,5 +33,5 @@ # the research papers on the package. Check out http://www.gromacs.org. gmx_add_unit_test(TestUtilsUnitTests testutils-test - refdata.cpp - testasserts.cpp) + refdata_tests.cpp + testasserts_tests.cpp) diff --git a/src/testutils/tests/refdata.cpp b/src/testutils/tests/refdata_tests.cpp similarity index 100% rename from src/testutils/tests/refdata.cpp rename to src/testutils/tests/refdata_tests.cpp diff --git a/src/testutils/tests/testasserts.cpp b/src/testutils/tests/testasserts_tests.cpp similarity index 100% rename from src/testutils/tests/testasserts.cpp rename to src/testutils/tests/testasserts_tests.cpp -- 2.22.0