Merge pull request #550 from TsudaKageyu/fix-test

Fix test code to work on some environments.
This commit is contained in:
Scott Wheeler 2015-05-20 19:24:52 +02:00
commit 525396d9c2

View File

@ -39,7 +39,7 @@ inline string copyFile(const string &filename, const string &ext)
#endif
string sourceFileName = testFilePath(filename) + ext;
ifstream source(sourceFileName, std::ios::binary);
ifstream source(sourceFileName.c_str(), std::ios::binary);
ofstream destination(testFileName, std::ios::binary);
destination << source.rdbuf();
return string(testFileName);