Commit Graph
10 Commits
Author SHA1 Message Date
dualfroz 8198c5c4b3 .github/workflows: run go test -race for all packages (#3848)
Concurrency tests in the root package, text/v2, vector, internal/thread,
internal/hook, internal/gamepaddb, exp/textinput and exp/vmhost only
catch a data race under the race detector. Run go test -race on ./...
with -p=1, like the plain Linux step, in one Linux cell with the newest
Go, as the races are not platform specific and every Go version in the
matrix compiles the same code.

Closes #3569
2026-10-03 22:21:53 +09:00
upstream 9480cbfc46 Upstream hajimehoshi/ebiten state of the touched files before b07f89656b 2026-10-03 15:21:53 +02:00
dualfroz fab8fc22e0 audio: run TestPlayOnIdleContext on the fake clock of synctest
The test was added after the survey in #3716, and waits on real time in
the same way.

Updates #3716
2026-10-03 16:06:04 +02:00
dualfroz d22b1a2b09 audio: run the tests waiting on real time on the fake clock of synctest
TestGC, TestSameSourcePlayers, TestDeferredDeviceCreation,
TestPauseAndStopReading, TestPauseAndStopReadingWhilePaused,
TestPositionNotGrowingAfterFinished and
TestPlayerErrorDoesNotStopOtherPlayers now run in a synctest bubble, so
their sleeps and deadlines take no real time.

A bubble must not leave goroutines behind, so ResetContextForTesting
now stops the goroutine updating the players and the dummy players
reading their sources, and waits for them to exit. Before, every test
leaked them.

Updates #3716
2026-10-03 16:06:04 +02:00
upstream 87bac3749b Upstream hajimehoshi/ebiten state of the touched files before 040fcc781c 2026-10-02 16:34:40 +02:00
dualfroz ec545f506b internal/gamepad: don't fail when inotify is unavailable on Linux (#3705)
The inotify limits are per user, so another program can exhaust them and
make InotifyInit1 or InotifyAddWatch fail. That aborted RunGame with
"gamepad: InotifyAddWatch failed: no space left on device" even though
inotify is only used to detect hotplugged gamepads. GLFW ignores these
errors, so do the same and keep the gamepads found by the initial scan.

Closes #3304
2026-09-14 01:12:12 +09:00
upstream 3462b6821c Upstream hajimehoshi/ebiten state of the touched files before 39aa8ab4c0 2026-09-13 18:12:12 +02:00
dualfroz 6545add45f internal/gamepad: drop the inotify test, as requested in review 2026-09-13 17:21:09 +02:00
dualfroz f892849eeb internal/gamepad: don't fail when inotify is unavailable on Linux
The inotify limits are per user, so another program can exhaust them and
make InotifyInit1 or InotifyAddWatch fail. That aborted RunGame with
"gamepad: InotifyAddWatch failed: no space left on device" even though
inotify is only used to detect hotplugged gamepads. GLFW ignores these
errors, so do the same and keep the gamepads found by the initial scan.

Closes #3304
2026-09-11 23:26:34 +02:00
upstream e2e4627cf0 Upstream hajimehoshi/ebiten state of the touched files before 943205c3c1 2026-09-11 23:26:34 +02:00