• Andrew Dunstan's avatar
    Work around Msys weakness in Testlib.pm's command_like() · efd7f8e3
    Andrew Dunstan authored
    When output of IPC::Run::run () is redirected to scalar references, in
    certain circumstances the Msys perl does not correctly detect that the
    end of file has been seen, making the test hang indefinitely. One such
    circumstance is when the command is 'pg_ctl start', and such a change
    was made in commit f13ea95f. The workaround, which only applies on
    MSys, is to redirect the output to temporary files and then read them in
    when the process has finished.
    
    Patch by me, reviewed and tweaked by Tom Lane.
    efd7f8e3
001_start_stop.pl 2 KB