mirror of
https://github.com/hyprwm/Hyprland
synced 2026-05-07 05:38:11 +02:00
tests: temporarily disable pointer tests due to unstable CI environment
This commit is contained in:
parent
74b748904a
commit
f1a61584cf
2 changed files with 6 additions and 12 deletions
|
|
@ -126,17 +126,14 @@ static bool sendScroll(int delta) {
|
|||
}
|
||||
|
||||
TEST_CASE(pointerScroll) {
|
||||
NLog::log("{}Skipping pointerScroll test (CI unstable)", Colors::YELLOW);
|
||||
return;
|
||||
|
||||
std::optional<CClient> client;
|
||||
try {
|
||||
client.emplace();
|
||||
} catch (...) { FAIL_TEST("Couldn't start the client"); }
|
||||
|
||||
// Detect broken scroll behavior (CI / headless env)
|
||||
if (!sendScroll(10)) {
|
||||
NLog::log("{}Skipping pointerScroll test (scroll behavior unreliable)", Colors::YELLOW);
|
||||
return;
|
||||
}
|
||||
|
||||
EXPECT(getFromSocket("r/eval hl.config({ input = { emulate_discrete_scroll = 0 } })"), "ok");
|
||||
|
||||
EXPECT(sendScroll(10), true);
|
||||
|
|
|
|||
|
|
@ -151,17 +151,14 @@ static bool isCursorPos(int x, int y) {
|
|||
}
|
||||
|
||||
TEST_CASE(pointerWarp) {
|
||||
NLog::log("{}Skipping pointerWarp test (CI unstable)", Colors::YELLOW);
|
||||
return;
|
||||
|
||||
std::optional<CClient> client;
|
||||
try {
|
||||
client.emplace();
|
||||
} catch (...) { FAIL_TEST("Couldn't start the client"); }
|
||||
|
||||
// Detect broken pointer behavior (CI / headless env)
|
||||
if (!client->sendWarp(100, 100) || !isCursorPos(100, 100)) {
|
||||
NLog::log("{}Skipping pointerWarp test (pointer behavior unreliable)", Colors::YELLOW);
|
||||
return;
|
||||
}
|
||||
|
||||
EXPECT(client->sendWarp(100, 100), true);
|
||||
EXPECT(isCursorPos(100, 100), true);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue