tests: Fixed compilation with latest libpl

This commit is contained in:
WerWolv
2023-03-13 11:19:20 +01:00
parent ab4bff9f42
commit 146273b1b3
7 changed files with 13 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
#include <pl/helpers/file.hpp>
#include <pl/helpers/guards.hpp>
#include <wolv/io/file.hpp>
#include <wolv/utils/guards.hpp>
#include <fmt/format.h>
#include <cstdlib>
@@ -20,7 +20,7 @@ int main(int argc, char **argv) {
fmt::print("Running test {} on test file {}\n", magicName, magicFilePath.filename().string());
magic_t ctx = magic_open(MAGIC_NONE);
PL_ON_SCOPE_EXIT { magic_close(ctx); };
ON_SCOPE_EXIT { magic_close(ctx); };
if (ctx == nullptr)
return EXIT_FAILURE;