From: Pavel Begunkov <[email protected]>
To: [email protected]
Cc: Jens Axboe <[email protected]>, [email protected]
Subject: [PATCH liburing v2 3/5] file-register: fix return codes
Date: Thu, 30 Jun 2022 15:10:15 +0100 [thread overview]
Message-ID: <758c2ea5ceb0de6f8b4be66c0dcda79b7a7aed8d.1656597976.git.asml.silence@gmail.com> (raw)
In-Reply-To: <[email protected]>
Use T_EXIT* in file-register.c
Signed-off-by: Pavel Begunkov <[email protected]>
---
test/file-register.c | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/test/file-register.c b/test/file-register.c
index cd00a90..6a9cbb1 100644
--- a/test/file-register.c
+++ b/test/file-register.c
@@ -847,25 +847,25 @@ int main(int argc, char *argv[])
ret = test_basic(&ring, 0);
if (ret) {
printf("test_basic failed\n");
- return ret;
+ return T_EXIT_FAIL;
}
ret = test_basic(&ring, 1);
if (ret) {
printf("test_basic failed\n");
- return ret;
+ return T_EXIT_FAIL;
}
ret = test_basic_many(&ring);
if (ret) {
printf("test_basic_many failed\n");
- return ret;
+ return T_EXIT_FAIL;
}
ret = test_sparse(&ring);
if (ret) {
printf("test_sparse failed\n");
- return ret;
+ return T_EXIT_FAIL;
}
if (no_update)
@@ -874,49 +874,49 @@ int main(int argc, char *argv[])
ret = test_additions(&ring);
if (ret) {
printf("test_additions failed\n");
- return ret;
+ return T_EXIT_FAIL;
}
ret = test_removals(&ring);
if (ret) {
printf("test_removals failed\n");
- return ret;
+ return T_EXIT_FAIL;
}
ret = test_replace(&ring);
if (ret) {
printf("test_replace failed\n");
- return ret;
+ return T_EXIT_FAIL;
}
ret = test_replace_all(&ring);
if (ret) {
printf("test_replace_all failed\n");
- return ret;
+ return T_EXIT_FAIL;
}
ret = test_grow(&ring);
if (ret) {
printf("test_grow failed\n");
- return ret;
+ return T_EXIT_FAIL;
}
ret = test_shrink(&ring);
if (ret) {
printf("test_shrink failed\n");
- return ret;
+ return T_EXIT_FAIL;
}
ret = test_zero(&ring);
if (ret) {
printf("test_zero failed\n");
- return ret;
+ return T_EXIT_FAIL;
}
ret = test_huge(&ring);
if (ret) {
printf("test_huge failed\n");
- return ret;
+ return T_EXIT_FAIL;
}
ret = test_skip(&ring);
@@ -928,7 +928,7 @@ int main(int argc, char *argv[])
ret = test_sparse_updates();
if (ret) {
printf("test_sparse_updates failed\n");
- return ret;
+ return T_EXIT_FAIL;
}
ret = test_fixed_removal_ordering();
@@ -946,7 +946,7 @@ int main(int argc, char *argv[])
ret = test_partial_register_fail();
if (ret) {
printf("test_partial_register_fail failed\n");
- return ret;
+ return T_EXIT_FAIL;
}
return T_EXIT_PASS;
--
2.36.1
next prev parent reply other threads:[~2022-06-30 14:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-30 14:10 [PATCH liburing v2 0/5] ranged file slot alloc Pavel Begunkov
2022-06-30 14:10 ` [PATCH liburing v2 1/5] update io_uring.h with file slot alloc ranges Pavel Begunkov
2022-06-30 14:10 ` [PATCH liburing v2 2/5] alloc range helpers Pavel Begunkov
2022-06-30 14:10 ` Pavel Begunkov [this message]
2022-06-30 14:10 ` [PATCH liburing v2 4/5] tests: print file-register errors to stderr Pavel Begunkov
2022-06-30 14:10 ` [PATCH liburing v2 5/5] test range file alloc Pavel Begunkov
2022-06-30 14:59 ` [PATCH liburing v2 0/5] ranged file slot alloc Jens Axboe
2022-06-30 16:47 ` Jens Axboe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=758c2ea5ceb0de6f8b4be66c0dcda79b7a7aed8d.1656597976.git.asml.silence@gmail.com \
[email protected] \
[email protected] \
[email protected] \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox