diff options
author | Jens Axboe <axboe@kernel.dk> | 2022-02-11 09:53:35 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-02-11 09:54:16 -0700 |
commit | e18f1ce24bf1800721dec9070cda6f172dcea25c (patch) | |
tree | 2523a27de811e3e1c7b57e676f989ab36f1b50ee | |
parent | f44d51921a320670e0b1de531888786f6e4892d7 (diff) | |
download | liburing-e18f1ce24bf1800721dec9070cda6f172dcea25c.tar.gz liburing-e18f1ce24bf1800721dec9070cda6f172dcea25c.tar.bz2 |
test/pollfree: ignore run if argument is given
This test case doesn't use a passed in argument, so just skip the run
if one is given.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | test/pollfree.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/pollfree.c b/test/pollfree.c index f73b6ad..cdc7af0 100644 --- a/test/pollfree.c +++ b/test/pollfree.c @@ -388,8 +388,12 @@ void execute_call(int call) break; } } -int main(void) + +int main(int argc, char *argv[]) { + if (argc > 1) + return 0; + syscall(__NR_mmap, 0x1ffff000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x21000000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); |