Skip to content
Commit c5e8f024 authored by Martin Storsjö's avatar Martin Storsjö
Browse files

[libcxx] Explicitly return the expected error code in create_directories if...

[libcxx] Explicitly return the expected error code in create_directories if the parent isn't a directory

On windows, going ahead and actually trying to create the directory
doesn't return an error code that maps to
std::errc::not_a_directory in this case.

This fixes two cases of
    TEST_CHECK(ErrorIs(ec, std::errc::not_a_directory))
in filesystems/fs.op.funcs/fs.op.create_directories/create_directories.pass.cpp
for windows (in testcases added in 59c72a70).

Differential Revision: https://reviews.llvm.org/D97090
parent 415c67ba
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment