mirror of
https://github.com/hyprwm/Hyprland
synced 2026-05-07 09:18:09 +02:00
tests: skip pointer tests when no reliable input environment is available
This commit is contained in:
parent
6b930adb76
commit
e1a64b485a
2 changed files with 4 additions and 4 deletions
|
|
@ -126,8 +126,8 @@ static bool sendScroll(int delta) {
|
|||
}
|
||||
|
||||
TEST_CASE(pointerScroll) {
|
||||
if (std::getenv("CI")) {
|
||||
NLog::log("{}Skipping pointerScroll test in CI (cursor behavior unreliable)", Colors::YELLOW);
|
||||
if (std::getenv("GITHUB_ACTIONS") || std::getenv("CI")) {
|
||||
NLog::log("{}Skipping pointerScroll test in CI (unreliable pointer behavior)", Colors::YELLOW);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -151,8 +151,8 @@ static bool isCursorPos(int x, int y) {
|
|||
}
|
||||
|
||||
TEST_CASE(pointerWarp) {
|
||||
if (std::getenv("CI")) {
|
||||
NLog::log("{}Skipping pointerWarp test in CI (cursor behavior unreliable)", Colors::YELLOW);
|
||||
if (std::getenv("GITHUB_ACTIONS") || std::getenv("CI")) {
|
||||
NLog::log("{}Skipping pointerWarp test in CI (unreliable pointer behavior)", Colors::YELLOW);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue