tests/common/util.rs panics with Broken pipe error on some targets when pipe_in() is used in tests · Issue #5338 · uutils/coreutils · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hmm, what would we then do in the error branch? I guess we could ignore the error, but that shouldn't be necessary. Which targets are impacted by this?
yes, specifically for broken pipe - ignore it. Panic on the other errors. Targets where it failed consistently are ubuntu-latest intel (i686, x84_64). All other targets did not fail on the same tests. The workaround is to use .ignore_stdin_write_error() of UCommand instances in tests that use .pipe_in() stdin feed, but it should not be required - it works without it on all other targets.
coreutils/tests/common/util.rs
Lines 2014 to 2015 in aa0437c
This seems to be the culprit. Maybe add handling the errors with match/if let instead of expect().unwrap() ?
The text was updated successfully, but these errors were encountered: