Hi Collin,

> I noticed that test-strerrorname_np.c fails on the following line on
> GNU/Hurd:
> 
>     /* GNU/Hurd */
>     #if defined ED_ALREADY_OPEN
>     ASSERT (strcmp (strerrorname_np (ED_ALREADY_OPEN), "ED_ALREADY_OPEN") == 
> 0);
>     #endif
> 
> This is because glibc doesn't have GNU/Hurd errors in
> sysdeps/gnu/errlist.h. This includes EMACH_*, EKERN_*, EMIG_*, and ED_*.

Indeed. This is already registered as a glibc bug [1].

> How about I #if 0 these checks out in the tests and Gnulib replacement
> function for now so the behaviors are the same?

I would only do so if there was no hope that the glibc bug ever gets fixed.
But since
  - it was fixed for other glibc ports,
  - the Hurd maintainer is aware of it,
I don't think it will stay open for too long.

Bruno

[1] https://sourceware.org/bugzilla/show_bug.cgi?id=29545




Reply via email to