refactor: remove broken OSXScreenTest

This commit is contained in:
sithlord48
2025-04-08 20:43:55 -04:00
committed by Nick Bolton
parent e512125595
commit 139dbf61f3
2 changed files with 2 additions and 44 deletions

View File

@ -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

View File

@ -9,7 +9,8 @@ if (WIN32)
SOURCE MSWindowsClipboardTests.cpp
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/src/lib/platform"
)
elseif(UNIX AND NOT APPLE)
elseif(APPLE)
elseif(UNIX)
create_test(
NAME XWindowsClipboardTests
DEPENDS platform