Skip to content

Commit 49607b4

Browse files
rbmarlierepevik
authored andcommitted
syscalls/getrusage04: Disable for VIRT_ANY
Disable getrusage04 under any virtualized environment, as it is known to be unstable under such conditions. Link: https://lore.kernel.org/ltp/20250225-disable_virt_other_getrusage04-v3-1-47cd3fbc845e@suse.com/ Suggested-by: Martin Doucha <mdoucha@suse.cz> Reviewed-by: Martin Doucha <mdoucha@suse.cz> Reviewed-by: Petr Vorel <pvorel@suse.cz> Signed-off-by: Ricardo B. Marlière <rbm@suse.com> Signed-off-by: Petr Vorel <pvorel@suse.cz>
1 parent 39043a3 commit 49607b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

testcases/kernel/syscalls/getrusage/getrusage04.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,9 @@ static void setup(void)
198198
{
199199
tst_sig(NOFORK, DEF_HANDLER, cleanup);
200200

201-
if (tst_is_virt(VIRT_XEN) || tst_is_virt(VIRT_KVM) || tst_is_virt(VIRT_HYPERV))
202-
tst_brkm(TCONF, NULL, "This testcase is not supported on this"
203-
" virtual machine.");
201+
if (tst_is_virt(VIRT_ANY))
202+
tst_brkm(TCONF, NULL,
203+
"Test is not supported on a virtual machine");
204204

205205
BIAS_MAX = guess_timer_resolution();
206206

0 commit comments

Comments
 (0)