forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitefd7f8e
committed
Work around Msys weakness in Testlib.pm's command_like()
When output of IPC::Run::run () is redirected to scalar references, incertain circumstances the Msys perl does not correctly detect that theend of file has been seen, making the test hang indefinitely. One suchcircumstance is when the command is 'pg_ctl start', and such a changewas made in commitf13ea95. The workaround, which only applies onMSys, is to redirect the output to temporary files and then read them inwhen the process has finished.Patch by me, reviewed and tweaked by Tom Lane.1 parent50d2426 commitefd7f8e
2 files changed
+30
-3
lines changedLines changed: 11 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
32 | 32 |
| |
33 | 33 |
| |
34 | 34 |
| |
35 |
| - | |
36 |
| - | |
37 |
| - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
38 | 46 |
| |
39 | 47 |
| |
40 | 48 |
| |
|
Lines changed: 19 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
| 40 | + | |
40 | 41 |
| |
41 | 42 |
| |
42 | 43 |
| |
| |||
300 | 301 |
| |
301 | 302 |
| |
302 | 303 |
| |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
303 | 322 |
| |
304 | 323 |
| |
305 | 324 |
| |
|
0 commit comments
Comments
(0)