Rainer Orth <r...@cebitec.uni-bielefeld.de> writes:

> The libgo os test used to fail on 32-bit Solaris 2/x86 only:
>
> --- FAIL: os_test.TestHostname
>        Hostname() = "", want "fuego"
>
> Running the test under gdb, I find that syscall.Uname is entered with
> errno = 4 and left the same, even if I reset errno = ENONE on entry.
> Further investigation led to this snippet from <sys/utsname.h>:
>
> #if defined(__i386) && !defined(__amd64)
>
> static int
> uname(struct utsname *_buf)
> {
>         return (_nuname(_buf));
> }
>
> #endif
>
> The following patch reflects this and fixes the testcase.

Thanks.

Committed.

Ian

Reply via email to