FileSystem: Improve directory deletion test slightly

This commit is contained in:
chaoticgd 2024-12-09 03:50:11 +00:00 committed by Ty
parent 7d16a915ed
commit b8ff171127
1 changed files with 2 additions and 2 deletions

View File

@ -45,10 +45,10 @@ TEST(FileSystem, RecursiveDeleteDirectoryDontFollowSymbolicLinks)
ASSERT_EQ(symlink(target_dir.c_str(), symlink_path.c_str()), 0); ASSERT_EQ(symlink(target_dir.c_str(), symlink_path.c_str()), 0);
// Delete the directory containing the symlink. // Delete the directory containing the symlink.
ASSERT_TRUE(dir_to_delete.starts_with("/tmp/")); ASSERT_TRUE(dir_to_delete.starts_with("/tmp/pcsx2_filesystem_test_"));
ASSERT_TRUE(FileSystem::RecursiveDeleteDirectory(dir_to_delete.c_str())); ASSERT_TRUE(FileSystem::RecursiveDeleteDirectory(dir_to_delete.c_str()));
// Make sure the target file didn't get deleted. // Make sure the file in the target directory didn't get deleted.
ASSERT_TRUE(FileSystem::FileExists(file_path.c_str())); ASSERT_TRUE(FileSystem::FileExists(file_path.c_str()));
// Clean up. // Clean up.