test: Handle EDQUOT in act_keyctl_test_limits
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
Signed-off-by Matt Turner <[email protected]>
--- keyctl_testing.c | 4 ++++ 1 file changed, 4 insertions(+)
keyctl_testing.c +4 -0
@@ -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
Quoted 15 lines · Matt Turner
This matches the behavior in
act_keyctl_test_limits2and 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
I should have actually linked to https://bugs.gentoo.org/938132 as well or instead.
Quoted 38 lines · Matt Turner
This matches the behavior in
act_keyctl_test_limits2and 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(+)keyctl_testing.c +4
-1@@ -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.