From 23506e8eae1da30de781dfeacd4a1a9771b72eca Mon Sep 17 00:00:00 2001 From: Yuri Kunde Schlesner Date: Sat, 1 Sep 2018 11:44:24 +0800 Subject: [PATCH] Tests: Remove glad test OS X work-around --- src/tests/CMakeLists.txt | 2 -- src/tests/glad.cpp | 14 -------------- 2 files changed, 16 deletions(-) delete mode 100644 src/tests/glad.cpp diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt index ab67df21f..f048714a7 100644 --- a/src/tests/CMakeLists.txt +++ b/src/tests/CMakeLists.txt @@ -8,7 +8,6 @@ add_executable(tests core/hle/kernel/hle_ipc.cpp core/memory/memory.cpp core/memory/vm_manager.cpp - glad.cpp tests.cpp ) @@ -22,7 +21,6 @@ endif() create_target_directory_groups(tests) target_link_libraries(tests PRIVATE common core video_core) -target_link_libraries(tests PRIVATE glad) # To support linker work-around target_link_libraries(tests PRIVATE ${PLATFORM_LIBRARIES} catch-single-include nihstro-headers Threads::Threads) add_test(NAME tests COMMAND tests) diff --git a/src/tests/glad.cpp b/src/tests/glad.cpp deleted file mode 100644 index 1797c0e3d..000000000 --- a/src/tests/glad.cpp +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2016 Citra Emulator Project -// Licensed under GPLv2 or any later version -// Refer to the license.txt file included. - -#include -#include - -// 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); -}