[go: up one dir, main page]

Menu

#734 test failures on mips in socket.tst

build problems
closed-fixed
nobody
None
5
2018-04-23
2018-04-14
No

Dear Maintainer,

Tests fail in socket.tst on all Debian mips architectures (32- and 64-bit, low and big endian).

The reason is that the ABI for ECONNREFUSED and ECONNRESET is different on these platforms.

I attach a (rather hackish) patch that I applied to the Debian package.

Thanks,

S. Villemot

1 Attachments

Discussion

  • Sébastien Villemot

    Actually there are similar issues on sparc64, GNU/Hurd and GNU/kFreeBSD. Maybe a more systematic solution should be designed.

     
  • Sébastien Villemot

    FWIW, here is an updated version of my hackish patch, that supports more architectures.

     
  • Bruno Haible

    Bruno Haible - 2018-04-15

    Thank you for the patch. I will apply it soon.

    > Maybe a more systematic solution should be designed.
    Absolutely. There are three options I can currently think of:
    * Extend OS-ERROR so that it includes not only the numeric value of the code, but also a list of known names of this error code.
    * Add a function that converts a numeric errno code to a list of symbolic ones.
    * Just add a function that maps a symbolic errno code to a numeric one.

     
    • Sam Steingold

      Sam Steingold - 2018-04-15

      Bruno, bidirectional errno<--->keyword conversion is already present in the syscalls module.
      the right solution is probably to move these tests from the core to the syscalls module.

       
  • Bruno Haible

    Bruno Haible - 2018-04-23
    • status: open --> closed-fixed
     
  • Bruno Haible

    Bruno Haible - 2018-04-23

    Thank you. I have applied your patch.

     

Log in to post a comment.