summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/cq-size.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cq-size.c b/test/cq-size.c
index 6e4fa9c..9b55322 100644
--- a/test/cq-size.c
+++ b/test/cq-size.c
@@ -22,7 +22,7 @@ int main(int argc, char *argv[])
ret = io_uring_queue_init_params(4, &ring, &p);
if (ret) {
- if (errno == EINVAL) {
+ if (ret == -EINVAL) {
printf("Skipped, not supported on this kernel\n");
goto done;
}