Subject: bug#49459: [core-updates] Coreutils 8.32 test failures on armhf-linux

From: Ludovic Courtès <[email-masked]>
Date: Thu, 08 Jul 2021 01:31:50 +0200

On ‘core-updates’ ca. 68b0e0d511c2873603636e9f783ff59aac4b7612,
(@@ (gnu packages commencement) coreutils-final) fails Gnulib tests like
so, when running “natively” on an OverDrive (aarch64):

--8<---------------cut here---------------start------------->8---
FAIL: test-perror2
==================

test-perror2.c:84: assertion 'msg3 == msg4 || STREQ (msg3, str3)' failed
FAIL test-perror2 (exit status: 134)

FAIL: test-strerror_r
=====================

test-strerror_r.c:170: assertion 'msg3 == msg4 || STREQ (msg3, str3)' failed
FAIL test-strerror_r (exit status: 134)
--8<---------------cut here---------------end--------------->8---

Regarding ‘test-strerror_r’, this is what I see with Guile:

--8<---------------cut here---------------start------------->8---
scheme@(guile-user)> %host-type
$1 = "arm-unknown-linux-gnueabihf"
scheme@(guile-user)> (strerror -4)
$2 = "Unknown error -4"
scheme@(guile-user)> (strerror 1729576)
$3 = "Unknown error 1729576"
--8<---------------cut here---------------end--------------->8---

This is apparently fixed by this Gnulib commit:

  commit 175e0bc72808d564074c4adcc72aeadb74adfcc6
  Author: Paul Eggert <[email-masked]>
  Date:   Thu Aug 27 17:52:58 2020 -0700

      perror, strerror_r: remove unportable tests

      Problem reported by Florian Weimer in:
      https://lists.gnu.org/r/bug-gnulib/2020-08/msg00220.html
      * tests/test-perror2.c (main):
      * tests/test-strerror_r.c (main): Omit unportable tests.

Ludo’.