diff options
| author | nicole mazzuca <mazzucan@outlook.com> | 2019-07-26 16:32:33 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2019-07-26 16:32:33 -0700 |
| commit | f990dfaa5ba82155f95b75021453c075816fd4be (patch) | |
| tree | 607eb3d0a982ce16ef2c68de65dbda2d884f63d6 /toolsrc/src/vcpkg-test/files.cpp | |
| parent | 8900146533f8e38266ef89766a2bbacffcb67836 (diff) | |
| download | vcpkg-f990dfaa5ba82155f95b75021453c075816fd4be.tar.gz vcpkg-f990dfaa5ba82155f95b75021453c075816fd4be.zip | |
[vcpkg] Fix RealFilesystem::remove_all (#7430)
* fix remove_all
we were attempting to remove READONLY files before this, and so set them to non-READONLY
* fix linux/macos support
* whee fix vs2015
Diffstat (limited to 'toolsrc/src/vcpkg-test/files.cpp')
| -rw-r--r-- | toolsrc/src/vcpkg-test/files.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/toolsrc/src/vcpkg-test/files.cpp b/toolsrc/src/vcpkg-test/files.cpp index 9e14cec0c..ff0176a93 100644 --- a/toolsrc/src/vcpkg-test/files.cpp +++ b/toolsrc/src/vcpkg-test/files.cpp @@ -115,7 +115,9 @@ TEST_CASE ("remove all", "[files]") fs::path fp; fs.remove_all(temp_dir, ec, fp); - REQUIRE_FALSE(ec); + if (ec) { + FAIL("remove_all failure on file: " << fp); + } REQUIRE_FALSE(fs.exists(temp_dir)); } |
