Switch to std::filesystem
Drop the dependency on Boost.Filesystem
Change-Id: I5d6f6fe38cd0cf1c6996221188fa63db146dc9f9
diff --git a/tests/unit/security/pib/pib-impl.t.cpp b/tests/unit/security/pib/pib-impl.t.cpp
index d3d73de..7f624fd 100644
--- a/tests/unit/security/pib/pib-impl.t.cpp
+++ b/tests/unit/security/pib/pib-impl.t.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
- * Copyright (c) 2013-2023 Regents of the University of California.
+ * Copyright (c) 2013-2024 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@@ -25,7 +25,8 @@
#include "tests/boost-test.hpp"
#include "tests/unit/security/pib/pib-data-fixture.hpp"
-#include <boost/filesystem.hpp>
+#include <filesystem>
+
#include <boost/mp11/list.hpp>
namespace ndn::tests {
@@ -46,14 +47,14 @@
public:
~PibSqlite3Fixture()
{
- boost::filesystem::remove_all(m_path);
+ std::filesystem::remove_all(m_path);
}
private:
- const boost::filesystem::path m_path{boost::filesystem::path(UNIT_TESTS_TMPDIR) / "TestPibImpl"};
+ const std::filesystem::path m_path{std::filesystem::path(UNIT_TESTS_TMPDIR) / "TestPibImpl"};
public:
- PibSqlite3 pib{m_path.string()};
+ PibSqlite3 pib{m_path};
};
using PibImpls = boost::mp11::mp_list<PibMemoryFixture, PibSqlite3Fixture>;