Use SKIP now that we can

This commit is contained in:
Lars Mueller 2024-06-12 14:56:36 +02:00
parent 31ab21ffd5
commit 8547a33cc7

@ -6,16 +6,11 @@
#include "filesys.h"
#include "CReadFile.h"
#include "log.h"
#include "vector3d.h"
#include <irrlicht.h>
// Catch needs to be included after Irrlicht so that it sees operator<<
// declarations.
#include <catch.hpp>
#include <cstring>
#include "catch.h"
using v3f = irr::core::vector3df;
using v2f = irr::core::vector2df;
@ -24,10 +19,8 @@ TEST_CASE("gltf") {
const auto gamespec = findSubgame("devtest");
// HACK use SKIP() when Catch2 is upgraded to v3
if (!gamespec.isValid()) {
warningstream << "skipping gltf tests because devtest could not be found" << std::endl;
} else {
if (!gamespec.isValid())
SKIP();
irr::scene::CSceneManager smgr(nullptr, nullptr, nullptr);
const auto loadMesh = [&smgr](const irr::io::path& filepath) {
@ -337,5 +330,3 @@ SECTION("snow man") {
}
}
}