aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/VirtualFileSystemTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/unittests/Support/VirtualFileSystemTest.cpp')
-rw-r--r--llvm/unittests/Support/VirtualFileSystemTest.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/unittests/Support/VirtualFileSystemTest.cpp b/llvm/unittests/Support/VirtualFileSystemTest.cpp
index cfbb81e..e1b3ab6 100644
--- a/llvm/unittests/Support/VirtualFileSystemTest.cpp
+++ b/llvm/unittests/Support/VirtualFileSystemTest.cpp
@@ -537,7 +537,9 @@ TEST(VirtualFileSystemTest, PhysicalFileSystemWorkingDirFailure) {
llvm::make_scope_exit([&] { sys::fs::set_current_path(PrevWD); });
// Delete the working directory to create an error.
- ASSERT_EQ(sys::fs::remove_directories(WD), std::error_code());
+ if (sys::fs::remove_directories(WD, /*IgnoreErrors=*/false))
+ // Some platforms (e.g. Solaris) disallow removal of the working directory.
+ GTEST_SKIP() << "test requires deletion of working directory";
// Verify that we still get two separate working directories.
auto FS1 = vfs::createPhysicalFileSystem();