Skip to content

Commit 9a0461d

Browse files
committed
test/send_recv: properly return T_EXIT_SKIP
If an argument is passed and a test doesn't use it, it should return T_EXIT_SKIP rather than 0/T_EXIT_PASS. Signed-off-by: Jens Axboe <[email protected]>
1 parent 01f89b6 commit 9a0461d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/send_recv.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ int main(int argc, char *argv[])
328328
int ret;
329329

330330
if (argc > 1)
331-
return 0;
331+
return T_EXIT_SKIP;
332332

333333
ret = test_invalid();
334334
if (ret) {
@@ -408,5 +408,5 @@ int main(int argc, char *argv[])
408408
return ret;
409409
}
410410

411-
return 0;
411+
return T_EXIT_PASS;
412412
}

0 commit comments

Comments
 (0)