summaryrefslogtreecommitdiff
path: root/unittests/Support
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2011-01-05 16:38:57 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2011-01-05 16:38:57 +0000
commitda7c1cab8c083e3370cc94a23bc396cd75b7f2a7 (patch)
tree03e4103317d2865cbafaf28580957e9e08496856 /unittests/Support
parent1901925b783f4ef0ee5b6bbb3faeea6813b00ee2 (diff)
downloadllvm-da7c1cab8c083e3370cc94a23bc396cd75b7f2a7.tar.gz
llvm-da7c1cab8c083e3370cc94a23bc396cd75b7f2a7.tar.bz2
llvm-da7c1cab8c083e3370cc94a23bc396cd75b7f2a7.tar.xz
Support/PathV2: Implement directory iteration on POSIX.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122879 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Support')
-rw-r--r--unittests/Support/Path.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/unittests/Support/Path.cpp b/unittests/Support/Path.cpp
index e958c1f4da..a4fb518255 100644
--- a/unittests/Support/Path.cpp
+++ b/unittests/Support/Path.cpp
@@ -176,8 +176,6 @@ TEST(Support, Path) {
ASSERT_NO_ERROR(fs::exists(Twine(TempPath), TempFileExists));
EXPECT_FALSE(TempFileExists);
- // I've yet to do directory iteration on Unix.
-#ifdef LLVM_ON_WIN32
error_code ec;
for (fs::directory_iterator i(".", ec), e; i != e; i.increment(ec)) {
if (ec) {
@@ -186,7 +184,6 @@ TEST(Support, Path) {
report_fatal_error("Directory iteration failed!");
}
}
-#endif
}
} // anonymous namespace