1
0
Fork 0

Fix tests.

This commit is contained in:
Max Neunhoeffer 2019-11-12 14:44:04 +01:00
parent b66574af0f
commit 505efd1f6e
No known key found for this signature in database
GPG Key ID: 89A912AD5E343E1E
1 changed files with 4 additions and 1 deletions

View File

@ -217,6 +217,7 @@ public:
arangodb::RandomGenerator::initialize(arangodb::RandomGenerator::RandomType::MERSENNE); arangodb::RandomGenerator::initialize(arangodb::RandomGenerator::RandomType::MERSENNE);
} }
_id = TRI_GetTempPath(); _id = TRI_GetTempPath();
_id += TRI_DIR_SEPARATOR_CHAR; _id += TRI_DIR_SEPARATOR_CHAR;
_id += "arangotest-"; _id += "arangotest-";
@ -330,14 +331,16 @@ public:
pathname += "backups"; pathname += "backups";
pathname += TRI_DIR_SEPARATOR_CHAR; pathname += TRI_DIR_SEPARATOR_CHAR;
pathname += _idRestore; pathname += _idRestore;
pathname += TRI_DIR_SEPARATOR_CHAR;
pathname += "engine_rocksdb";
retVal = TRI_CreateRecursiveDirectory(pathname.c_str(), systemError, retVal = TRI_CreateRecursiveDirectory(pathname.c_str(), systemError,
systemErrorStr); systemErrorStr);
EXPECT_EQ(TRI_ERROR_NO_ERROR, retVal); EXPECT_EQ(TRI_ERROR_NO_ERROR, retVal);
writeFile(pathname.c_str(), "../META", "{\"version\":\"" ARANGODB_VERSION "\", \"datetime\":\"xxx\", \"id\":\"xxx\"}");
writeFile(pathname.c_str(), "MANIFEST-000003", "manifest info"); writeFile(pathname.c_str(), "MANIFEST-000003", "manifest info");
writeFile(pathname.c_str(), "CURRENT", "MANIFEST-000003\n"); writeFile(pathname.c_str(), "CURRENT", "MANIFEST-000003\n");
writeFile(pathname.c_str(), "META", "{\"version\":\"" ARANGODB_VERSION "\", \"datetime\":\"xxx\", \"id\":\"xxx\"}");
writeFile(pathname.c_str(), "IDENTITY", "huh?"); writeFile(pathname.c_str(), "IDENTITY", "huh?");
writeFile(pathname.c_str(), "000111.sst", "raw data 1"); writeFile(pathname.c_str(), "000111.sst", "raw data 1");
writeFile(pathname.c_str(), "000111.sha.e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.hash", ""); writeFile(pathname.c_str(), "000111.sha.e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.hash", "");