archive/zip: turn off large zip test on 32-bit archs

We won't be able to unzip something with 2^32-1 bytes in it.

Fixes the linux/386 longtest builder.

Fixes #79554
Fixes #79555

Change-Id: Ifbff124412a007fb00cf5e7c99c1050b17f190d0
Reviewed-on: https://go-review.googlesource.com/c/go/+/780980
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
khr@golang.org 2026-05-20 20:51:13 -07:00 committed by Gopher Robot
parent abdc5da461
commit 0db3804845

View file

@ -14,6 +14,7 @@ import (
"hash"
"internal/testenv"
"io"
"math/bits"
"slices"
"strings"
"testing"
@ -499,6 +500,9 @@ func TestZip64LargeDirectory(t *testing.T) {
if testing.Short() {
t.Skip("skipping in short mode")
}
if bits.UintSize == 32 {
t.Skip("skipping on 32-bit platforms")
}
t.Parallel()
// gen returns a func that writes a zip with a wantLen bytes
// of central directory.