Re: [PATCH] test: Handle EDQUOT in act_keyctl_test_limits
Matt Turner <[email protected]>
| Newsgroups | org.kernel.vger.keyrings |
|---|---|
| Message-ID | <CAEdQ38HwdbwRAg3KoBm2XU-fjQdxtzjb37Ao4GOrWHFbpDT31Q@mail.gmail.com> |
On Sun, Aug 10, 2025 at 6:41 PM Matt Turner <[email protected]> wrote: > > 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 <[email protected]> > --- > 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 > Six month ping.