refactor: remove broken OSXScreenTest
This commit is contained in:
parent
e512125595
commit
139dbf61f3
2 changed files with 2 additions and 44 deletions
|
|
@ -1,43 +0,0 @@
|
||||||
/*
|
|
||||||
* Deskflow -- mouse and keyboard sharing utility
|
|
||||||
* SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
|
|
||||||
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "arch/Arch.h"
|
|
||||||
#include "base/EventQueue.h"
|
|
||||||
#include "platform/OSXScreen.h"
|
|
||||||
|
|
||||||
#include <gtest/gtest.h>
|
|
||||||
|
|
||||||
// TODO: fix intermittently failing test
|
|
||||||
// return value of CGCursorIsVisible is unreliable
|
|
||||||
#if 0
|
|
||||||
|
|
||||||
TEST(OSXScreenTests, hideCursor_notPrimary)
|
|
||||||
{
|
|
||||||
EventQueue queue;
|
|
||||||
OSXScreen screen(true, false);
|
|
||||||
|
|
||||||
screen.hideCursor();
|
|
||||||
|
|
||||||
EXPECT_EQ(false, CGCursorIsVisible());
|
|
||||||
|
|
||||||
// workaround for screen class race condition.
|
|
||||||
ARCH->sleep(.1f);
|
|
||||||
}
|
|
||||||
|
|
||||||
TEST(OSXScreenTests, showCursor_notPrimary)
|
|
||||||
{
|
|
||||||
EventQueue queue;
|
|
||||||
OSXScreen screen(false, false);
|
|
||||||
|
|
||||||
screen.showCursor();
|
|
||||||
|
|
||||||
EXPECT_EQ(true, CGCursorIsVisible());
|
|
||||||
|
|
||||||
// workaround for screen class race condition.
|
|
||||||
ARCH->sleep(.1f);
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
@ -9,7 +9,8 @@ if (WIN32)
|
||||||
SOURCE MSWindowsClipboardTests.cpp
|
SOURCE MSWindowsClipboardTests.cpp
|
||||||
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/src/lib/platform"
|
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/src/lib/platform"
|
||||||
)
|
)
|
||||||
elseif(UNIX AND NOT APPLE)
|
elseif(APPLE)
|
||||||
|
elseif(UNIX)
|
||||||
create_test(
|
create_test(
|
||||||
NAME XWindowsClipboardTests
|
NAME XWindowsClipboardTests
|
||||||
DEPENDS platform
|
DEPENDS platform
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue