summaryrefslogtreecommitdiffstats
path: root/Tests/SystemInformation/DumpInformation.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-11-12 19:18:36 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-11-12 19:18:36 (GMT)
commit8b689f9a622722d5389d56602387fafe3d398464 (patch)
tree42f502daf95d35c91b6a24addd97d2da852c40fc /Tests/SystemInformation/DumpInformation.cxx
parent359ca21903fd4bef035e891ff9b366a2a0c5419f (diff)
downloadCMake-8b689f9a622722d5389d56602387fafe3d398464.zip
CMake-8b689f9a622722d5389d56602387fafe3d398464.tar.gz
CMake-8b689f9a622722d5389d56602387fafe3d398464.tar.bz2
clean up test for html output
Diffstat (limited to 'Tests/SystemInformation/DumpInformation.cxx')
-rw-r--r--Tests/SystemInformation/DumpInformation.cxx21
1 files changed, 19 insertions, 2 deletions
diff --git a/Tests/SystemInformation/DumpInformation.cxx b/Tests/SystemInformation/DumpInformation.cxx
index bb5a649..a6d5b2a 100644
--- a/Tests/SystemInformation/DumpInformation.cxx
+++ b/Tests/SystemInformation/DumpInformation.cxx
@@ -6,17 +6,34 @@ int main(int, char*[])
FILE* file = fopen(CMAKE_DUMP_FILE, "r");
if(!file)
{
- printf("Error, could not open file %s", CMAKE_DUMP_FILE);
+ printf("Error, could not open file %s\n", CMAKE_DUMP_FILE);
return -1;
}
+ printf("#Note less than will show up as { and greater than will be }\n");
while(!feof(file))
{
int ch = fgetc(file);
if(ch != EOF)
{
- putc(ch, stdout);
+ if(ch == '<')
+ {
+ printf("&lt;");
+ }
+ else if(ch == '>')
+ {
+ printf("&gt;");
+ }
+ else if(ch == '&')
+ {
+ printf("&amp;");
+ }
+ else
+ {
+ putc(ch, stdout);
+ }
}
}
+ printf("\n");
fclose(file);
return 0;
}