tests: skip pointer tests when no reliable input environment is available

This commit is contained in:
B2krobbery 2026-05-03 21:39:07 +05:30
parent 6b930adb76
commit e1a64b485a
2 changed files with 4 additions and 4 deletions

View file

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

View file

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