diff --git a/image_test.go b/image_test.go index c32e93fb8..11eb8a66a 100644 --- a/image_test.go +++ b/image_test.go @@ -26,6 +26,7 @@ import ( "runtime" "testing" "time" + "unsafe" "github.com/hajimehoshi/ebiten/v2" "github.com/hajimehoshi/ebiten/v2/examples/resources/images" @@ -50,6 +51,10 @@ func skipTooSlowTests(t *testing.T) bool { t.Skip("too slow or fragile on Wasm") return true } + if runtime.GOOS == "windows" && unsafe.Sizeof(uintptr(0)) == 4 { + t.Skip("out of memory often happens on 32bit Windows (#2332)") + return true + } return false } @@ -3649,6 +3654,10 @@ func TestImageBlendOperation(t *testing.T) { } func TestImageBlendFactor(t *testing.T) { + if skipTooSlowTests(t) { + return + } + const w, h = 16, 1 dst := ebiten.NewImage(w, h) src := ebiten.NewImage(w, h)