From a4cce9262cf55a526940f45b892a4e422175b509 Mon Sep 17 00:00:00 2001 From: Steffen Schuemann Date: Sat, 8 Feb 2020 22:27:21 +0100 Subject: [PATCH] Testing some create_directories() corner case. --- test/filesystem_test.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/filesystem_test.cpp b/test/filesystem_test.cpp index 62588f9..3e575b3 100644 --- a/test/filesystem_test.cpp +++ b/test/filesystem_test.cpp @@ -1707,6 +1707,11 @@ TEST_CASE("30.10.15.6 create_directories", "[filesystem][operations][fs.op.creat CHECK(fs::is_regular_file(p)); CHECK(!fs::is_directory(p)); CHECK(!fs::create_directories(p, ec)); + ec.clear(); + CHECK(fs::create_directories(t.path() / "a/b/c", ec)); + CHECK(!ec); + CHECK(fs::create_directories(t.path() / "d/e/f/", ec)); + CHECK(!ec); #endif }