All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH v3] syscalls/getrusage04: Disable for VIRT_ANY
@ 2025-02-25 16:40 Ricardo B. Marlière via ltp
  2025-02-27 14:13 ` Petr Vorel
  0 siblings, 1 reply; 2+ messages in thread
From: Ricardo B. Marlière via ltp @ 2025-02-25 16:40 UTC (permalink / raw)
  To: Linux Test Project; +Cc: Ricardo B. Marlière

From: Ricardo B. Marlière <rbm@suse.com>

Disable getrusage04 under any virtualized environment, as it is known to be
unstable under such conditions.

Suggested-by: Martin Doucha <mdoucha@suse.cz>
Reviewed-by: Martin Doucha <mdoucha@suse.cz>
Signed-off-by: Ricardo B. Marlière <rbm@suse.com>
---
Changes in v3:
- Update commit message
- Link to v2: https://lore.kernel.org/r/20250225-disable_virt_other_getrusage04-v2-1-71d91adee359@suse.com

Changes in v2:
- Use VIRT_ANY instead of VIRT_OTHER for future proofing
- Link to v1: https://lore.kernel.org/r/20250224-disable_virt_other_getrusage04-v1-1-bcb433af9635@suse.com
---
 testcases/kernel/syscalls/getrusage/getrusage04.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/testcases/kernel/syscalls/getrusage/getrusage04.c b/testcases/kernel/syscalls/getrusage/getrusage04.c
index b03bc549bd835b33acaa02693706255e88cbe4f8..983db2649690e4318b62ce3340192102cb1dacf4 100644
--- a/testcases/kernel/syscalls/getrusage/getrusage04.c
+++ b/testcases/kernel/syscalls/getrusage/getrusage04.c
@@ -198,9 +198,10 @@ static void setup(void)
 {
 	tst_sig(NOFORK, DEF_HANDLER, cleanup);
 
-	if (tst_is_virt(VIRT_XEN) || tst_is_virt(VIRT_KVM) || tst_is_virt(VIRT_HYPERV))
-		tst_brkm(TCONF, NULL, "This testcase is not supported on this"
-		        " virtual machine.");
+	if (tst_is_virt(VIRT_ANY))
+		tst_brkm(TCONF, NULL,
+			 "This testcase is not supported on this"
+			 " virtual machine.");
 
 	BIAS_MAX = guess_timer_resolution();
 

---
base-commit: a1aebfd4d99d5da12834dae5215815ff8d82995c
change-id: 20250224-disable_virt_other_getrusage04-c9db2aa9e69c

Best regards,
-- 
Ricardo B. Marlière <rbm@suse.com>


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [LTP] [PATCH v3] syscalls/getrusage04: Disable for VIRT_ANY
  2025-02-25 16:40 [LTP] [PATCH v3] syscalls/getrusage04: Disable for VIRT_ANY Ricardo B. Marlière via ltp
@ 2025-02-27 14:13 ` Petr Vorel
  0 siblings, 0 replies; 2+ messages in thread
From: Petr Vorel @ 2025-02-27 14:13 UTC (permalink / raw)
  To: Ricardo B. Marlière; +Cc: Linux Test Project

Hi Ricardo,

> Disable getrusage04 under any virtualized environment, as it is known to be
> unstable under such conditions.

I dared to simplify the message and join it on a single line.
Thanks, merged!

Kind regards,
Petr

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-02-27 14:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-25 16:40 [LTP] [PATCH v3] syscalls/getrusage04: Disable for VIRT_ANY Ricardo B. Marlière via ltp
2025-02-27 14:13 ` Petr Vorel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.