From ee022dc0edf3869ecca40d4bd1197564e29cf590 Mon Sep 17 00:00:00 2001 From: Albin Johansson Date: Mon, 6 Jul 2020 14:15:27 +0200 Subject: [PATCH] Update touch_test.cpp --- test/unittests/touch_test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unittests/touch_test.cpp b/test/unittests/touch_test.cpp index 61409d45f..10bcdf8a0 100644 --- a/test/unittests/touch_test.cpp +++ b/test/unittests/touch_test.cpp @@ -34,13 +34,15 @@ TEST_CASE("touch::num_devices", "[Touch]") CHECK(num_devices() == SDL_GetNumTouchDevices()); } +#ifndef TRAVIS_TEST + TEST_CASE("touch::get_device", "[Touch]") { const auto device = get_device(0); CHECK(!device.has_value()); } -#ifndef TRAVIS_TEST +#endif // TRAVIS_TEST TEST_CASE("touch::type_of", "[Touch]") { @@ -69,5 +71,3 @@ TEST_CASE("touch::mouse_touch_id", "[Touch]") CHECK(mouse_touch_id() == SDL_MOUSE_TOUCHID); CHECK(mouse_touch_id() != SDL_TOUCH_MOUSEID); } - -#endif // TRAVIS_TEST