diff --git a/test/one_disk_storage_test.cpp b/test/one_disk_storage_test.cpp index d3511d0..e189e6c 100644 --- a/test/one_disk_storage_test.cpp +++ b/test/one_disk_storage_test.cpp @@ -10,7 +10,6 @@ #include #include -#include "fsmod/PathUtil.hpp" #include "fsmod/FileSystem.hpp" #include "fsmod/OneDiskStorage.hpp" #include "fsmod/FileSystemException.hpp" diff --git a/test/register_test.cpp b/test/register_test.cpp index 598de44..167f50d 100644 --- a/test/register_test.cpp +++ b/test/register_test.cpp @@ -62,7 +62,7 @@ TEST_F(RegisterTest, RetrieveByActor) { auto hosts = sg4::Engine::get_instance()->get_all_hosts(); int index = 0; for (const auto& h : hosts) { - sg4::Actor::create("TestActor", h, [this, index]() { + sg4::Actor::create("TestActor", h, [index]() { std::map, std::less<>> accessible_file_systems; std::shared_ptr fs; std::shared_ptr file; @@ -119,7 +119,7 @@ TEST_F(RegisterTest, RetrieveByZone) { } TEST_F(RegisterTest, NoActor) { - DO_TEST_WITH_FORK([this]() { + DO_TEST_WITH_FORK([]() { XBT_INFO("Creating a very small platform"); auto *root_zone = sg4::create_full_zone("root_zone"); auto host = root_zone->create_host("my_host", "100Gf");