Commit 1bfe3720 authored by Craig Scott's avatar Craig Scott Committed by Craig Scott

Tests: Ensure Solaris linker never sees empty contents

Fixes the following tests on Solaris builds: wrapping, qtwrapping and
CMakeCommands.target_link_libraries
parent 47177976
// No content
// Solaris needs non-empty content so ensure
// we have at least one symbol
int Solaris_requires_a_symbol_here = 0;
......@@ -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);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment