yuzu-emu
/
yuzu
Archived
1
0
Fork 0

tests: add a work-around for macOS linking error

This commit is contained in:
wwylele 2016-11-19 17:16:34 +02:00
parent d7d6975af0
commit 282195b450
2 changed files with 15 additions and 0 deletions

View File

@ -1,4 +1,5 @@
set(SRCS set(SRCS
glad.cpp
tests.cpp tests.cpp
core/file_sys/path_parser.cpp core/file_sys/path_parser.cpp
) )

14
src/tests/glad.cpp Normal file
View File

@ -0,0 +1,14 @@
// Copyright 2016 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#include <catch.hpp>
#include <glad/glad.h>
// This is not an actual test, but a work-around for issue #2183.
// If tests uses functions in core but doesn't explicitly use functions in glad, the linker of macOS
// will error about undefined references from video_core to glad. So we explicitly use a glad
// function here to shut up the linker.
TEST_CASE("glad fake test", "[dummy]") {
REQUIRE(&gladLoadGL != nullptr);
}