Skip to content

Commit 5fd7c2b

Browse files
committed
修复测试读取路径的问题
1 parent cad0a7d commit 5fd7c2b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Test/src/TestHelper.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,10 @@ void TestHelper::CollectLuaFile(std::filesystem::path directoryPath, std::vector
6262
std::string TestHelper::ReadFile(const std::string &path) {
6363
std::filesystem::path base(ScriptBase);
6464
std::string newPath = (base / path).string();
65-
std::cerr<<"read file from "<< newPath <<std::endl;
6665
#ifdef _WIN32
6766
std::fstream fin(newPath, std::ios::in | std::ios::binary);
6867
#else
69-
std::fstream fin(path, std::ios::in);
68+
std::fstream fin(newPath, std::ios::in);
7069
#endif
7170

7271
if (fin.is_open()) {

0 commit comments

Comments
 (0)