diff options
Diffstat (limited to 'llvm/unittests/Support/Path.cpp')
-rw-r--r-- | llvm/unittests/Support/Path.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/unittests/Support/Path.cpp b/llvm/unittests/Support/Path.cpp index ef18773..73f0cbb 100644 --- a/llvm/unittests/Support/Path.cpp +++ b/llvm/unittests/Support/Path.cpp @@ -1088,6 +1088,11 @@ TEST_F(FileSystemTest, DirectoryIteration) { ASSERT_NO_ERROR(fs::remove(Twine(TestDirectory) + "/reclevel")); } +TEST_F(FileSystemTest, DirectoryNotExecutable) { + ASSERT_EQ(fs::access(TestDirectory, sys::fs::AccessMode::Execute), + errc::permission_denied); +} + #ifdef LLVM_ON_UNIX TEST_F(FileSystemTest, BrokenSymlinkDirectoryIteration) { // Create a known hierarchy to recurse over. |