summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2021-12-10 08:54:17 -0700
committerJens Axboe <axboe@kernel.dk>2021-12-10 08:54:17 -0700
commit39d5c150b2754a7074454f90ac510b0281bac190 (patch)
tree49294ca7d83f127977563d3cb9977ffb908a2c20
parent1d86befc0552332fce761a63b2e28e33b743a074 (diff)
downloadliburing-39d5c150b2754a7074454f90ac510b0281bac190.tar.gz
liburing-39d5c150b2754a7074454f90ac510b0281bac190.tar.bz2
test/skip-cqe: skip file based run
This test doesn't do anything with the file passed in as an argument, hence it should just skip if that's the case. Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--test/skip-cqe.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/skip-cqe.c b/test/skip-cqe.c
index ba84d92..a01800a 100644
--- a/test/skip-cqe.c
+++ b/test/skip-cqe.c
@@ -309,6 +309,9 @@ int main(int argc, char *argv[])
int mid_idx = LINK_SIZE / 2;
int last_idx = LINK_SIZE - 1;
+ if (argc > 1)
+ return 0;
+
if (pipe(fds)) {
fprintf(stderr, "pipe() failed\n");
return 1;