diff options
| author | 2016-11-27 18:56:56 -0500 | |
|---|---|---|
| committer | 2016-11-27 18:56:56 -0500 | |
| commit | 4ba5acdaff19f5334b86e86c324763d4e9b969b0 (patch) | |
| tree | 408343a46858bcde292744d89fc6b3dadd9a54b0 /src/tests/glad.cpp | |
| parent | Merge pull request #2218 from Subv/stencil_lines (diff) | |
| parent | tests: add a work-around for macOS linking error (diff) | |
| download | yuzu-4ba5acdaff19f5334b86e86c324763d4e9b969b0.tar.gz yuzu-4ba5acdaff19f5334b86e86c324763d4e9b969b0.tar.xz yuzu-4ba5acdaff19f5334b86e86c324763d4e9b969b0.zip | |
Merge pull request #2132 from wwylele/fix-fs-err
Correct FS error codes & add path boundary checks
Diffstat (limited to 'src/tests/glad.cpp')
| -rw-r--r-- | src/tests/glad.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
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. | ||
| 12 | TEST_CASE("glad fake test", "[dummy]") { | ||
| 13 | REQUIRE(&gladLoadGL != nullptr); | ||
| 14 | } | ||