- Notifications
You must be signed in to change notification settings - Fork587
Commit80c1f1e
committed
only clear the stream error state in readline() for glob()
This would previously clear the stream error state in any casewhere sv_gets() failed and the error state was set.This included normal files, which meant that the fact that an erroroccurred was no longer reflected in the stream state.For reads from ARGV this was a no-op, since nextargv() re-opens theinput stream by calling do_open6() which closes the old input streamsilently.For glob() (and really only for miniperl, since File::Glob is used fora full perl) leaving the stream in an error state could be confusingfor the error reporting done when do_close() fails, since it wouldfail if the stream has an error state, but we report it as theunderlying pclose() failing due to the child process failing in someway.Since this now leaves the error state on the stream, the close()calls in the test updated by this commit would fail, changing itsoutput. Since the result of those closes didn't seem relatedto the purpose of the test, I changed it not throw an error oneither close() failing.1 parent02cf5fb commit80c1f1e
2 files changed
+9
-4
lines changedLines changed: 7 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3334 | 3334 |
| |
3335 | 3335 |
| |
3336 | 3336 |
| |
3337 |
| - | |
3338 | 3337 |
| |
3339 | 3338 |
| |
3340 |
| - | |
| 3339 | + | |
3341 | 3340 |
| |
| 3341 | + | |
3342 | 3342 |
| |
3343 | 3343 |
| |
3344 | 3344 |
| |
| 3345 | + | |
| 3346 | + | |
| 3347 | + | |
| 3348 | + | |
| 3349 | + | |
3345 | 3350 |
| |
3346 | 3351 |
| |
3347 | 3352 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
237 | 237 |
| |
238 | 238 |
| |
239 | 239 |
| |
240 |
| - | |
241 |
| - | |
| 240 | + | |
| 241 | + | |
242 | 242 |
| |
243 | 243 |
| |
244 | 244 |
| |
|
0 commit comments
Comments
(0)