summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit52714863db5380f6e943bfb48a0ee20a94b47e44 (patch)
tree1121a30ae880cfe05acd352c806ecd2072544865 /llvm/unittests/Support
parent7dba51f8f832ec71cd1dca1c5ac2fd9360819890 (diff)
downloadbcm5719-llvm-52714863db5380f6e943bfb48a0ee20a94b47e44.tar.gz
bcm5719-llvm-52714863db5380f6e943bfb48a0ee20a94b47e44.zip
Support/PathV2: Implement directory iteration on POSIX.
llvm-svn: 122879
Diffstat (limited to 'llvm/unittests/Support')
-rw-r--r--llvm/unittests/Support/Path.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/unittests/Support/Path.cpp b/llvm/unittests/Support/Path.cpp
index e958c1f4dae..a4fb518255b 100644
--- a/llvm/unittests/Support/Path.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud