From a44f31de099aaf6768af2102919f1a8c221ce6f4 Mon Sep 17 00:00:00 2001
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Date: Sun, 8 May 2022 18:39:26 -0400
Subject: [PATCH 6/6] Skip broken tests on i686
* compress/flate runs out of memory
* testing/fstest uses Seek, which is not implemented there
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
---
Makefile | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 99f67c29..1ef11d29 100644
--- a/Makefile
+++ b/Makefile
@@ -338,15 +338,21 @@ endif
# Additional standard library packages that pass tests on individual platforms
TEST_PACKAGES_LINUX := \
archive/zip \
- compress/flate \
compress/lzw \
crypto/hmac \
debug/dwarf \
debug/plan9obj \
io/ioutil \
strconv \
- testing/fstest \
text/template/parse
+ifneq ($(shell getconf LONG_BIT),32)
+# Some tests are skipped on 32-bit because:
+# compress/flate runs out of memory
+# testing/fstest uses Seek, which is not implemented there
+TEST_PACKAGES_LINUX += \
+ compress/flate \
+ testing/fstest
+endif
TEST_PACKAGES_DARWIN := $(TEST_PACKAGES_LINUX)
--
2.36.1