summaryrefslogtreecommitdiff
path: root/test/nop.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2020-05-19 17:36:19 -0600
committerJens Axboe <axboe@kernel.dk>2020-05-19 17:36:19 -0600
commita2141fc6718696db79101db358380a0490f6c506 (patch)
tree600c04cb98944f66035e285ce4b863c0a1cb7bec /test/nop.c
parent36c05ec4a0a69a91b1779dce74347361dfc560b8 (diff)
downloadliburing-a2141fc6718696db79101db358380a0490f6c506.tar.gz
liburing-a2141fc6718696db79101db358380a0490f6c506.tar.bz2
test: add potential argument, ignore if unused
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'test/nop.c')
-rw-r--r--test/nop.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/nop.c b/test/nop.c
index efa3215..82201bd 100644
--- a/test/nop.c
+++ b/test/nop.c
@@ -90,6 +90,9 @@ int main(int argc, char *argv[])
struct io_uring ring;
int ret;
+ if (argc > 1)
+ return 0;
+
ret = io_uring_queue_init(8, &ring, 0);
if (ret) {
fprintf(stderr, "ring setup failed: %d\n", ret);