diff --git a/test/unittest/enable_verity_test.cpp b/test/unittest/enable_verity_test.cpp index 09e3d92a1f28e2ad1255279dda57678cea14f82d..c6c2d9b075566c45586e7a7b45103c9b9fda8ff8 100644 --- a/test/unittest/enable_verity_test.cpp +++ b/test/unittest/enable_verity_test.cpp @@ -330,6 +330,7 @@ static void EnableExpandedTamperFile(const std::string &filePath, // Enable successully but cannot read EXPECT_EQ(EnableVerityOnOneFile(expandFilePath, &arg), 0); + SaveStringToFile(DROP_CACHE_PROC_PATH, DROP_ALL_CACHE_LEVEL); ByteBuffer tmp; EXPECT_EQ(ReadDataFromFile(expandFilePath, tmp), false);