apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 51029] New: Pipe test failures on Windows
Date Wed, 06 Apr 2011 10:36:43 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=51029

           Summary: Pipe test failures on Windows
           Product: APR
           Version: HEAD
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: APR
        AssignedTo: bugs@apr.apache.org
        ReportedBy: carlo.bramix@libero.it


The "make test" on MinGW+MSys generates a failure in testpipe.
The failure happens in wait_pipe() because apr_file_pipe_timeout_set() returns
an error when trying to set the timeout.
By checking the code in APR, actually the timeout can be set only if the pipe
has been open as overlapped object and when running at least on an NT platform.
Replacing:

rv = apr_file_pipe_create(&readp, &writep, p);

with:

rv = apr_file_pipe_create_ex(&readp, &writep, APR_FULL_NONBLOCK, p);

allowed to set the timeout correctly.
Unfortunately, the test still fails later because the next apr_file_pipe_wait()
seems to return APR_ENOTIMPL.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message