summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2017-05-18 00:01:17 (GMT)
committerCraig Scott <craig.scott@constrainttec.com>2017-05-18 00:32:03 (GMT)
commit1bfe37201a0b5fb25f775ec34e25a2a184529489 (patch)
treee89f60f37c623fa0e0a79704aee108524720ed49
parent471779764757a3a6e4b5fb1db9b8943630b18f3d (diff)
downloadCMake-1bfe37201a0b5fb25f775ec34e25a2a184529489.zip
CMake-1bfe37201a0b5fb25f775ec34e25a2a184529489.tar.gz
CMake-1bfe37201a0b5fb25f775ec34e25a2a184529489.tar.bz2
Tests: Ensure Solaris linker never sees empty contents
Fixes the following tests on Solaris builds: wrapping, qtwrapping and CMakeCommands.target_link_libraries
-rw-r--r--Tests/CMakeCommands/target_link_libraries/empty.cpp4
-rw-r--r--Tests/Wrapping/fakefluid.cxx4
2 files changed, 6 insertions, 2 deletions
diff --git a/Tests/CMakeCommands/target_link_libraries/empty.cpp b/Tests/CMakeCommands/target_link_libraries/empty.cpp
index ab32cf6..a6ecef8 100644
--- a/Tests/CMakeCommands/target_link_libraries/empty.cpp
+++ b/Tests/CMakeCommands/target_link_libraries/empty.cpp
@@ -1 +1,3 @@
-// No content
+// Solaris needs non-empty content so ensure
+// we have at least one symbol
+int Solaris_requires_a_symbol_here = 0;
diff --git a/Tests/Wrapping/fakefluid.cxx b/Tests/Wrapping/fakefluid.cxx
index 02c0c52..a118bbd 100644
--- a/Tests/Wrapping/fakefluid.cxx
+++ b/Tests/Wrapping/fakefluid.cxx
@@ -6,7 +6,9 @@ int main(int ac, char** av)
if (strcmp(av[i], "-o") == 0 || strcmp(av[i], "-h") == 0) {
fprintf(stdout, "fakefluid is creating file \"%s\"\n", av[i + 1]);
FILE* file = fopen(av[i + 1], "w");
- fprintf(file, "// hello\n");
+ fprintf(file, "// Solaris needs non-empty content so ensure\n"
+ "// we have at least one symbol\n"
+ "int Solaris_requires_a_symbol_here = 0;\n");
fclose(file);
}
}