From eb3349184a5429659f9ce67be9166fc4634d8020 Mon Sep 17 00:00:00 2001 From: Alexander Potapenko Date: Thu, 5 Dec 2024 10:54:22 +0100 Subject: executor: arm: disable test_glob Glob() doesn't work on 32-bit ARM when run on a 64-bit system under QEMU: https://gitlab.com/qemu-project/qemu/-/issues/263 Not sure whether this is specific to tests running under qemu-user, or the ARM32 executor in the wild as well. --- executor/test.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'executor') diff --git a/executor/test.h b/executor/test.h index ed6e7e82b..ba318dece 100644 --- a/executor/test.h +++ b/executor/test.h @@ -319,6 +319,12 @@ static void must_symlink(const char* oldpath, const char* linkpath) static int test_glob() { +#if GOARCH_arm + // When running a 32-bit ARM binary on a 64-bit system under QEMU, readdir() fails + // with EOVERFLOW, resulting in Glob() returning 0 files. + // Tracking QEMU bug: https://gitlab.com/qemu-project/qemu/-/issues/263. + return -1; +#endif // Note: pkg/runtest.TestExecutor creates a temp dir for the test, // so we create files in cwd and don't clean up. if (!test_one_glob("glob/*", {})) -- cgit mrf-deployment