We cannot use the general cleanup-and-succeed here. Migrate this to use exitcode reporting via a new "skip" goto. Signed-off-by: Eli Schwartz <eschwartz93@xxxxxxxxx> --- test/mkdir.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/mkdir.c b/test/mkdir.c index 6b3497c..0a6d16f 100644 --- a/test/mkdir.c +++ b/test/mkdir.c @@ -72,7 +72,7 @@ int main(int argc, char *argv[]) if (ret < 0) { if (ret == -EBADF || ret == -EINVAL) { fprintf(stdout, "mkdirat not supported, skipping\n"); - goto out; + goto skip; } fprintf(stderr, "mkdirat: %s\n", strerror(-ret)); goto err; @@ -97,10 +97,13 @@ int main(int argc, char *argv[]) goto err1; } -out: unlinkat(AT_FDCWD, fn, AT_REMOVEDIR); io_uring_queue_exit(&ring); - return 0; + return T_EXIT_PASS; +skip: + unlinkat(AT_FDCWD, fn, AT_REMOVEDIR); + io_uring_queue_exit(&ring); + return T_EXIT_SKIP; err1: unlinkat(AT_FDCWD, fn, AT_REMOVEDIR); err: -- 2.35.1