Changed names of test files to avoid Fujitsu compiler bug
authorErik Lindahl <erik@kth.se>
Tue, 5 Aug 2014 10:15:39 +0000 (12:15 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Thu, 7 Aug 2014 17:17:59 +0000 (19:17 +0200)
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
src/testutils/tests/refdata_tests.cpp [moved from src/testutils/tests/refdata.cpp with 100% similarity]
src/testutils/tests/testasserts_tests.cpp [moved from src/testutils/tests/testasserts.cpp with 100% similarity]

index 75008d6bfbafd867c7377689f96686baac08d4c7..045e7c5616b2e4ace992cdb142f168d2f0d3db8f 100644 (file)
@@ -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)