diff options
Diffstat (limited to 'Tests/SystemInformation/DumpInformation.cxx')
-rw-r--r-- | Tests/SystemInformation/DumpInformation.cxx | 18 |
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; +} |