From: Matt Turner <mattst88@gmail.com>
To: David Howells <dhowells@redhat.com>
Cc: keyrings@vger.kernel.org, Matt Turner <mattst88@gmail.com>
Subject: [PATCH] test: Handle EDQUOT in act_keyctl_test_limits
Date: Sun, 10 Aug 2025 18:40:41 -0400 [thread overview]
Message-ID: <20250810224041.3025756-1-mattst88@gmail.com> (raw)
This matches the behavior in `act_keyctl_test_limits2` and avoids a test
failure [1] on some platforms:
```
TEST SIZE 192._._._._._._
197 desc wrong error: Disk quota exceeded
._
198 desc wrong error: Disk quota exceeded
._
199 desc wrong error: Disk quota exceeded
._
200 desc wrong error: Disk quota exceeded
```
[1] https://bugs.gentoo.org/789837#c9
Signed-off-by: Matt Turner <mattst88@gmail.com>
---
keyctl_testing.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git ./keyctl_testing.c ./keyctl_testing.c
index 3161467..588fa83 100644
--- ./keyctl_testing.c
+++ ./keyctl_testing.c
@@ -126,6 +126,10 @@ static void act_keyctl_test_limits(int argc, char *argv[])
fprintf(stderr, "%d desc failed: %m\n", i);
nr_fail++;
}
+ } else if (errno == EDQUOT) {
+ /* This might happen due to us creating keys
+ * really fast.
+ */
} else {
putchar('\n');
fprintf(stderr, "%d desc wrong error: %m\n", i);
--
2.49.1
next reply other threads:[~2025-08-10 22:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-10 22:40 Matt Turner [this message]
2025-08-11 0:38 ` [PATCH] test: Handle EDQUOT in act_keyctl_test_limits Matt Turner
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=20250810224041.3025756-1-mattst88@gmail.com \
--to=mattst88@gmail.com \
--cc=dhowells@redhat.com \
--cc=keyrings@vger.kernel.org \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).