From b8ff1711278bd1444a230cb1ce44bf8585cb688e Mon Sep 17 00:00:00 2001 From: chaoticgd <43898262+chaoticgd@users.noreply.github.com> Date: Mon, 9 Dec 2024 03:50:11 +0000 Subject: [PATCH] FileSystem: Improve directory deletion test slightly --- tests/ctest/common/filesystem_tests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ctest/common/filesystem_tests.cpp b/tests/ctest/common/filesystem_tests.cpp index 89562819bf..eaafc74a53 100644 --- a/tests/ctest/common/filesystem_tests.cpp +++ b/tests/ctest/common/filesystem_tests.cpp @@ -45,10 +45,10 @@ TEST(FileSystem, RecursiveDeleteDirectoryDontFollowSymbolicLinks) ASSERT_EQ(symlink(target_dir.c_str(), symlink_path.c_str()), 0); // 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())); - // 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())); // Clean up.