summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2021-12-22 19:54:45 -0700
committerJens Axboe <axboe@kernel.dk>2021-12-22 19:54:45 -0700
commit7233a8753cb7a4a137cdc5e534bb31fb2a0d53fd (patch)
treeea5514e07216de324ed8a01caa7bca12b53f2a36
parent7cc81e17c036e383cef7129e5027b76f35ff46e2 (diff)
downloadliburing-7233a8753cb7a4a137cdc5e534bb31fb2a0d53fd.tar.gz
liburing-7233a8753cb7a4a137cdc5e534bb31fb2a0d53fd.tar.bz2
test/getdents: ignore run if argument specified
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--test/getdents.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/getdents.c b/test/getdents.c
index d4f4c8b..ac66f28 100644
--- a/test/getdents.c
+++ b/test/getdents.c
@@ -216,6 +216,9 @@ int main(int argc, char *argv[])
{
struct rlimit rlim;
+ if (argc > 0)
+ return 0;
+
/* Increase number of files rlimit to 1M. */
if (getrlimit(RLIMIT_NOFILE, &rlim) < 0) {
perror("getrlimit");