We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c757c7 commit b50a92bCopy full SHA for b50a92b
test/sys/test_aio.rs
@@ -164,7 +164,12 @@ fn test_aio_suspend() {
164
loop {
165
{
166
let cbbuf = [&wcb, &rcb];
167
- assert!(aio_suspend(&cbbuf[..], Some(timeout)).is_ok());
+ let r = aio_suspend(&cbbuf[..], Some(timeout));
168
+ match r {
169
+ Err(Error::Sys(Errno::EINTR)) => continue,
170
+ Err(e) => panic!("aio_suspend returned {:?}", e),
171
+ Ok(_) => ()
172
+ };
173
}
174
if rcb.error() != Err(Error::from(Errno::EINPROGRESS)) &&
175
wcb.error() != Err(Error::from(Errno::EINPROGRESS)) {
0 commit comments