#4294: hClose003 test failes on Solaris/OpenBSD on i386/x86 host
---------------------------------+------------------------------------------
Reporter: kgardas | Owner: igloo
Type: bug | Status: new
Priority: normal | Milestone: 7.0.1
Component: Test Suite | Version: 6.13
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: Unknown/Multiple | Blocking:
Architecture: x86 | Failure: None/Unknown
---------------------------------+------------------------------------------
Comment(by igloo):
The test passes on Linux and OS X, and fails on Solaris (sparky).
This C program:
{{{
#include <sys/wait.h>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <signal.h>
#include <errno.h>
int main(void) {
int pipefd[2];
int r;
signal(SIGPIPE, SIG_IGN);
if (pipe(pipefd) == -1) {
perror("pipe");
exit(1);
}
close(pipefd[0]);
r = write(pipefd[1], "foobar", 3);
printf("r is %d; errno is %d; %s\n", r, errno, strerror(errno));
return 0;
}
}}}
gives me the same output on both Linux and Solaris, though:
{{{
r is -1; errno is 32; Broken pipe
}}}
Am I missing something, or is there a bug in the Haskell code on Solaris?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4294#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs