From cef95fdc2e4002ee6357d8d40ef73c8d875720e3 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Mon, 31 Aug 2020 11:53:51 -0300 Subject: string: Fix strerrorname_np return value [BZ #26555] It returns the string of the error constant, not its description (as strerrordesc_np). To handle the Hurd error mapping, the ERR_MAP was removed from errlist.h to errlist.c. Also, the testcase test-strerr (added on 325081b9eb2) was not added on the check build neither it builds correctly. This patch also changed it to decouple from errlist.h, the expected return values are added explicitly for both both strerrorname_np and strerrordesc_np directly. Checked on x86_64-linux-gnu and i686-linux-gnu. I also run a make check for i686-gnu. --- stdio-common/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'stdio-common/Makefile') diff --git a/stdio-common/Makefile b/stdio-common/Makefile index 8475fd1f09..eff0c98d82 100644 --- a/stdio-common/Makefile +++ b/stdio-common/Makefile @@ -69,7 +69,8 @@ tests := tstscanf test_rdwr test-popen tstgetln test-fseek \ tst-printf-bz25691 \ tst-vfprintf-width-prec-alloc \ tst-printf-fp-free \ - tst-printf-fp-leak + tst-printf-fp-leak \ + test-strerr test-srcs = tst-unbputc tst-printf tst-printfsz-islongdouble -- cgit v1.2.3