diff options
author | Jens Axboe <axboe@kernel.dk> | 2024-01-28 15:11:33 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-01-28 15:11:33 -0700 |
commit | 5f8fafba1fcd049636db8bc1d768b842dacb8ac4 (patch) | |
tree | 4ecea2fff242c9c4f401d5ebef7b8907535d340d | |
parent | a8277668275e9d9bf60aa45622584a6a92039608 (diff) | |
download | liburing-5f8fafba1fcd049636db8bc1d768b842dacb8ac4.tar.gz |
test/read-mshot-empty: skip if argument is given
This test doesn't take an argument, so just skip the test cases if one
is given to prevent it from running multiple times depending on devices
or files listed in the config file.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | test/read-mshot-empty.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/read-mshot-empty.c b/test/read-mshot-empty.c index 8a9c8e2d..04d723df 100644 --- a/test/read-mshot-empty.c +++ b/test/read-mshot-empty.c @@ -71,6 +71,9 @@ int main(int argc, char *argv[]) int i, ret, fds[2];
void *buf, *tret;
+ if (argc > 1)
+ return T_EXIT_SKIP;
+
if (pipe(fds) < 0) {
perror("pipe");
return T_EXIT_FAIL;
|