Use the new skip error code instead of failing the test. Also
add in a Local variables: section for emacs.
Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0024-harness-skip-22.p-if-async_poll-isn-t-supported.patch
io_prep_poll(&iocb, pipe1[0], POLLIN);
ret = io_submit(ctx, 1, iocbs);
if (ret != 1) {
+ /* if poll isn't supported, skip the test */
+ if (ret == -EINVAL)
+ return 3;
printf("child: io_submit failed\n");
return 1;
}
ret = io_submit(ctx, 1, iocbs);
if (ret != 1) {
- printf("parent: io_submit failed\n");
+ /* if poll isn't supported, skip the test */
+ if (ret == -EINVAL)
+ return 3;
+ printf("parent: io_submit failed with %d\n", ret);
return 1;
}
return 0;
}
}
+/*
+ * Local variables:
+ * mode: c
+ * c-basic-offset: 8
+ * End:
+ */