diff --git a/protocol/src/test/cpp/test/serialization_test.h b/protocol/src/test/cpp/test/serialization_test.h index 8546d53b..3dbedb57 100644 --- a/protocol/src/test/cpp/test/serialization_test.h +++ b/protocol/src/test/cpp/test/serialization_test.h @@ -75,7 +75,7 @@ namespace serialization_test { void complexObjectTest() { // 读取二进制文件 - ifstream file("../resources/ComplexObject.bytes", ios::out | ios::binary); + ifstream file("../../resources/ComplexObject.bytes", ios::out | ios::binary); unsigned char carray[10000]; int length = 0; while (file.read((char *) &carray[length], sizeof(unsigned char))) { diff --git a/protocol/src/test/cpp/test/speed_test.h b/protocol/src/test/cpp/test/speed_test.h index c1e77aab..26b69225 100644 --- a/protocol/src/test/cpp/test/speed_test.h +++ b/protocol/src/test/cpp/test/speed_test.h @@ -20,7 +20,7 @@ namespace speed_test { void parseObject() { // 读取二进制文件 - ifstream file("../resources/ComplexObject.bytes", ios::out | ios::binary); + ifstream file("../../resources/ComplexObject.bytes", ios::out | ios::binary); unsigned char carray[10000]; int length = 0; while (file.read((char *) &carray[length], sizeof(unsigned char))) {