-// Copyright (C) 2021-2022 Joel Rosdahl and other contributors
+// Copyright (C) 2021-2023 Joel Rosdahl and other contributors
//
// See doc/AUTHORS.adoc for a complete list of contributors.
//
// clang-format on
# undef WIN32_NO_STATUS
# include <ntstatus.h>
-# define mkdir(a, b) _mkdir(a)
// Protect against incidental use of MinGW execv.
# define execv(a, b) do_not_call_execv_on_windows
#include <util/DirEntry.hpp>
#include <util/environment.hpp>
#include <util/file.hpp>
+#include <util/filesystem.hpp>
#include <util/wincompat.hpp>
#include <third_party/doctest.h>
using TestUtil::TestContext;
using util::DirEntry;
+namespace fs = util::filesystem;
+
namespace {
bool
{
TestContext test_context;
- REQUIRE(mkdir("directory", 0456) == 0);
+ REQUIRE(fs::create_directory("directory"));
DirEntry entry("directory");
CHECK(entry);