CVS resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Tests / DocTest / DocTest.cxx
blob2263cbd731680a5c6719c5668e06d41d8d1054ee
1 #include <fstream>
2 #include <iostream>
3 #include <stdio.h>
5 int main ()
7 int result = 0;
9 // parse the dart test file
10 std::ifstream fin("UndefinedProperties.txt");
11 if(!fin)
13 fprintf(stderr,"failed to find undefined properties file");
14 return 1;
17 char buffer[1024];
18 while ( fin )
20 buffer[0] = 0;
21 fin.getline(buffer, 1023);
22 buffer[1023] = 0;
23 std::string line = buffer;
24 if(line.size() && line.find("with scope VARIABLE") == std::string::npos)
26 fprintf(stderr, "%s\n", line.c_str());
27 result = 1;
30 fin.close();
32 return result;