Skip to content

Commit

Permalink
test/read-inc-file: skip if argument is given
Browse files Browse the repository at this point in the history
This test operates on a single self-created file, just skip if an
argument is passed.

Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
axboe committed Jan 3, 2025
1 parent 4776a04 commit 1a780b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/read-inc-file.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ int main(int argc, char *argv[])
char *buf;
void *ptr;

if (argc > 1)
return T_EXIT_SKIP;

sprintf(fname, ".buf-inc-file.%d", getpid());
if (create_test_file(fname))
return T_EXIT_FAIL;
Expand Down

0 comments on commit 1a780b1

Please sign in to comment.