This test is unstable under QEMU as well, given the extra scheduling
on top of the virtual CPUs.

getrusage04    0  TINFO  :  utime:           0us; stime:         622us
getrusage04    0  TINFO  :  utime:           0us; stime:        1548us
getrusage04    0  TINFO  :  utime:           0us; stime:        2547us
getrusage04    0  TINFO  :  utime:           0us; stime:        3543us
getrusage04    0  TINFO  :  utime:           0us; stime:        4541us
getrusage04    0  TINFO  :  utime:        2770us; stime:        4541us
getrusage04    1  TFAIL  :  getrusage04.c:130: utime increased > 2000us:

Signed-off-by: Jiri Jaburek <jjabu...@redhat.com>
---
 testcases/kernel/syscalls/getrusage/getrusage04.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/testcases/kernel/syscalls/getrusage/getrusage04.c 
b/testcases/kernel/syscalls/getrusage/getrusage04.c
index 3640295..9d4cccd 100644
--- a/testcases/kernel/syscalls/getrusage/getrusage04.c
+++ b/testcases/kernel/syscalls/getrusage/getrusage04.c
@@ -201,8 +201,9 @@ static void setup(void)
 {
        tst_sig(NOFORK, DEF_HANDLER, cleanup);
 
-       if (tst_is_virt(VIRT_XEN))
-               tst_brkm(TCONF, NULL, "This testcase is not supported on Xen.");
+       if (tst_is_virt(VIRT_XEN) || tst_is_virt(VIRT_KVM))
+               tst_brkm(TCONF, NULL, "This testcase is not supported on this"
+                       " virtual machine.");
 
        BIAS_MAX = guess_timer_resolution();
 
-- 
2.1.0


------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to