forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit792dba7
committed
Fix closing stdin in TestLib.pm
Commit9af34f3 naively assumed that all non-windows platforms wouldhave pseudoterminals and that perl would have IO::Pty. Such is not thecase. Instead of assumung anything, test for the presence of IO::Pty andonly use code that might depend on it if it's present. The test result isexposed in $TestLib::have_io_pty so that it can be conveniently used inSKIP tests.Discussion:https://postgr.es/m/20191126044110.GB5435@paquier.xyz1 parent553d2ec commit792dba7
1 file changed
+19
-9
lines changedLines changed: 19 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
| 24 | + | |
24 | 25 |
| |
25 | 26 |
| |
26 | 27 |
| |
| |||
83 | 84 |
| |
84 | 85 |
| |
85 | 86 |
| |
| 87 | + | |
86 | 88 |
| |
87 | 89 |
| |
88 |
| - | |
| 90 | + | |
89 | 91 |
| |
90 | 92 |
| |
91 | 93 |
| |
| |||
119 | 121 |
| |
120 | 122 |
| |
121 | 123 |
| |
| 124 | + | |
| 125 | + | |
| 126 | + | |
122 | 127 |
| |
123 | 128 |
| |
124 | 129 |
| |
| |||
133 | 138 |
| |
134 | 139 |
| |
135 | 140 |
| |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
136 | 147 |
| |
137 | 148 |
| |
138 | 149 |
| |
| |||
182 | 193 |
| |
183 | 194 |
| |
184 | 195 |
| |
185 |
| - | |
186 |
| - | |
187 |
| - | |
188 |
| - | |
189 |
| - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
190 | 200 |
| |
191 |
| - | |
| 201 | + | |
| 202 | + | |
192 | 203 |
| |
193 | 204 |
| |
194 | 205 |
| |
195 |
| - | |
196 |
| - | |
| 206 | + | |
197 | 207 |
| |
198 | 208 |
| |
199 | 209 |
| |
|
0 commit comments
Comments
(0)