summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar wwylele2016-11-19 17:16:34 +0200
committerGravatar wwylele2016-11-19 18:55:35 +0200
commit282195b450721a5b8ad0cea8e66606b2661fe888 (patch)
tree87cb415861b62b7984a7aeb0309795da73697076
parentFileSys: rename SaveDataCheck archive to NCCH archive (diff)
downloadyuzu-282195b450721a5b8ad0cea8e66606b2661fe888.tar.gz
yuzu-282195b450721a5b8ad0cea8e66606b2661fe888.tar.xz
yuzu-282195b450721a5b8ad0cea8e66606b2661fe888.zip
tests: add a work-around for macOS linking error
-rw-r--r--src/tests/CMakeLists.txt1
-rw-r--r--src/tests/glad.cpp14
2 files changed, 15 insertions, 0 deletions
diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt
index 47799e1c2..89237e477 100644
--- a/src/tests/CMakeLists.txt
+++ b/src/tests/CMakeLists.txt
@@ -1,4 +1,5 @@
1set(SRCS 1set(SRCS
2 glad.cpp
2 tests.cpp 3 tests.cpp
3 core/file_sys/path_parser.cpp 4 core/file_sys/path_parser.cpp
4 ) 5 )
diff --git a/src/tests/glad.cpp b/src/tests/glad.cpp
new file mode 100644
index 000000000..b0b016440
--- /dev/null
+++ b/src/tests/glad.cpp
@@ -0,0 +1,14 @@
1// Copyright 2016 Citra Emulator Project
2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included.
4
5#include <catch.hpp>
6#include <glad/glad.h>
7
8// This is not an actual test, but a work-around for issue #2183.
9// If tests uses functions in core but doesn't explicitly use functions in glad, the linker of macOS
10// will error about undefined references from video_core to glad. So we explicitly use a glad
11// function here to shut up the linker.
12TEST_CASE("glad fake test", "[dummy]") {
13 REQUIRE(&gladLoadGL != nullptr);
14}