20 #ifndef __XAO_TESTUTILS_HXX__
21 #define __XAO_TESTUTILS_HXX__
31 static std::string getTestFilePath(
const std::string& filePath)
33 std::string dataDir = getenv(
"DATA_DIR");
38 static char* readTextFile(
const std::string& filePath)
42 rstr.open(filePath.c_str(), std::ios_base::binary);
43 rstr.seekg(0, rstr.end);
44 length = rstr.tellg();
45 rstr.seekg(0, rstr.beg);
46 char* txt =
new char[length+1];
47 rstr.read(txt, length);
Definition: TestUtils.hxx:29