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:
Ekaterina Vaartis
2018-01-12 05:02:06 +00:00
parent 68050ff61f
commit cce11ce7c2

View File

@@ -83,7 +83,7 @@ TEST_CASE(test_error_reporting)
for (auto &p : testCasesNonexistant) {
std::error_code ec;
TEST_CHECK(fs::remove_all(p) == 0);
TEST_CHECK(fs::remove_all(p, ec) == 0);
TEST_CHECK(!ec);
}
}