summaryrefslogtreecommitdiffstats
path: root/Tests/CustomCommand/generator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-04-29 19:34:49 (GMT)
committerBrad King <brad.king@kitware.com>2008-04-29 19:34:49 (GMT)
commitc7d84b21c636a559b1f1a87735ce12d21f4a9dcd (patch)
treef63d1ac44651bfeb21a82c614d7c6c8155cbffbd /Tests/CustomCommand/generator.cxx
parent3344ce9197926f262fa4eed30f085d72b08af744 (diff)
downloadCMake-c7d84b21c636a559b1f1a87735ce12d21f4a9dcd.zip
CMake-c7d84b21c636a559b1f1a87735ce12d21f4a9dcd.tar.gz
CMake-c7d84b21c636a559b1f1a87735ce12d21f4a9dcd.tar.bz2
BUG: Do not escape shell operators when generating command lines.
- See bug#6868. - Update CustomCommand test to check.
Diffstat (limited to 'Tests/CustomCommand/generator.cxx')
-rw-r--r--Tests/CustomCommand/generator.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Tests/CustomCommand/generator.cxx b/Tests/CustomCommand/generator.cxx
index 99da90c..cceac07 100644
--- a/Tests/CustomCommand/generator.cxx
+++ b/Tests/CustomCommand/generator.cxx
@@ -8,8 +8,12 @@ int main(int argc, char *argv[])
return 1;
}
FILE *fp = fopen(argv[1],"w");
-
+#ifdef GENERATOR_EXTERN
fprintf(fp,"int generated() { return 3; }\n");
+#else
+ fprintf(fp,"extern int gen_redirect(void);\n");
+ fprintf(fp,"int generated() { return gen_redirect(); }\n");
+#endif
fclose(fp);
return 0;
}