Skip to contentSkip to conversation

test: Handle EDQUOT in act_keyctl_test_limits

PATCH In review Matt Turner 1 participant 3 messages Aug 10, 2025 – Feb 23 Keys/keyrings

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test: Handle EDQUOT in act_keyctl_test_limits

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

---
 keyctl_testing.c | 4 ++++
 1 file changed, 4 insertions(+)
keyctl_testing.c +4 -0
index 3161467..588fa83 100644
@@ -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);
Signature · 1 line
2.49.1
#1 lore raw
Quoted 15 lines · Matt Turner

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
```
Quoted 1 line

[1] https://bugs.gentoo.org/789837#c9

I should have actually linked to https://bugs.gentoo.org/938132 as well or instead.

#2 lore raw
In reply to Matt Turner
Quoted 38 lines · Matt Turner

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

---
 keyctl_testing.c | 4 ++++
 1 file changed, 4 insertions(+)
keyctl_testing.c +4 -1
index 3161467..588fa83 100644
@@ -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);
--
Quoted 2 lines

2.49.1

Six month ping.