20 #ifndef __XAO_TESTUTILS_HXX__
21 #define __XAO_TESTUTILS_HXX__
33 std::string dataDir =
"";
34 char* geomSrcDir = getenv(
"XAO_DATA_DIR");
35 if (geomSrcDir != NULL)
38 #if defined _WIN32 || defined __CYGWIN__
53 rstr.open(filePath.c_str(), std::ios_base::binary);
54 rstr.seekg(0, rstr.end);
55 length = rstr.tellg();
56 rstr.seekg(0, rstr.beg);
57 char* txt =
new char[length+1];
58 rstr.read(txt, length);
Definition: TestUtils.hxx:29
static std::string getTestFilePath(const std::string &fileName)
Definition: TestUtils.hxx:31
static char * readTextFile(const std::string &filePath)
Definition: TestUtils.hxx:49
Definition: BrepGeometryTest.hxx:26