summaryrefslogtreecommitdiffstats
path: root/Tests/SystemInformation/DumpInformation.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-11-11 23:07:20 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-11-11 23:07:20 (GMT)
commit928b9dee0693371c1bcf6101a2a363a983615403 (patch)
treea21660c083642062f63e74dbbdce9b6c2c066bd2 /Tests/SystemInformation/DumpInformation.cxx
parent38781fd84dd87f84f6237810df75ea43be192095 (diff)
downloadCMake-928b9dee0693371c1bcf6101a2a363a983615403.zip
CMake-928b9dee0693371c1bcf6101a2a363a983615403.tar.gz
CMake-928b9dee0693371c1bcf6101a2a363a983615403.tar.bz2
new test
Diffstat (limited to 'Tests/SystemInformation/DumpInformation.cxx')
-rw-r--r--Tests/SystemInformation/DumpInformation.cxx18
1 files changed, 18 insertions, 0 deletions
diff --git a/Tests/SystemInformation/DumpInformation.cxx b/Tests/SystemInformation/DumpInformation.cxx
new file mode 100644
index 0000000..ab45228
--- /dev/null
+++ b/Tests/SystemInformation/DumpInformation.cxx
@@ -0,0 +1,18 @@
+#include <stdio.h>
+#include "DumpInformation.h"
+
+int main(int, char*[])
+{
+ FILE* file = fopen(CMAKE_DUMP_FILE, "r");
+ if(!file)
+ {
+ printf("Error, could not open file %s", CMAKE_DUMP_FILE);
+ return -1;
+ }
+ while(!feof(file))
+ {
+ putc(fgetc(file), stdout);
+ }
+ fclose(file);
+ return 0;
+}