mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-24 20:29:39 +08:00
Add error code handling to remove_all test
As mentioned by EricWF in revision D41830 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@322351 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -83,7 +83,7 @@ TEST_CASE(test_error_reporting)
|
|||||||
for (auto &p : testCasesNonexistant) {
|
for (auto &p : testCasesNonexistant) {
|
||||||
std::error_code ec;
|
std::error_code ec;
|
||||||
|
|
||||||
TEST_CHECK(fs::remove_all(p) == 0);
|
TEST_CHECK(fs::remove_all(p, ec) == 0);
|
||||||
TEST_CHECK(!ec);
|
TEST_CHECK(!ec);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user