summaryrefslogtreecommitdiffstats
path: root/Tests/StringFileTest/InputFile.h.in
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-07-10 18:29:30 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-07-10 18:29:30 (GMT)
commitb75c229444d8072fd63df2d723fb9cbec81f53f4 (patch)
tree75cd86fdc20f7e54fdb759711aeede0243f4bb12 /Tests/StringFileTest/InputFile.h.in
parentc4275f54c7d958349ea66458b6da46ae755bf324 (diff)
downloadCMake-b75c229444d8072fd63df2d723fb9cbec81f53f4.zip
CMake-b75c229444d8072fd63df2d723fb9cbec81f53f4.tar.gz
CMake-b75c229444d8072fd63df2d723fb9cbec81f53f4.tar.bz2
ENH: Add test for string and file commands
Diffstat (limited to 'Tests/StringFileTest/InputFile.h.in')
-rw-r--r--Tests/StringFileTest/InputFile.h.in21
1 files changed, 21 insertions, 0 deletions
diff --git a/Tests/StringFileTest/InputFile.h.in b/Tests/StringFileTest/InputFile.h.in
new file mode 100644
index 0000000..1bda5af
--- /dev/null
+++ b/Tests/StringFileTest/InputFile.h.in
@@ -0,0 +1,21 @@
+#include "includefile"
+
+int CheckMethod(const char* var, const char* val )
+{
+ if ( !var )
+ {
+ printf("Var not specified\n");
+ return 1;
+ }
+ if ( !val )
+ {
+ printf("Val not specified\n");
+ return 1;
+ }
+ if ( strcmp(var, val) != 0)
+ {
+ printf("Var (%s) and Val (%s) are not the same...\n", var, val);
+ return 1;
+ }
+ return 0;
+}