Skip to content

Commit

Permalink
syscalls/getrusage: Skip getrusage04 on Microsoft Hyper-V
Browse files Browse the repository at this point in the history
Some of smaller Microsoft Hyper-V instances fail to pass the test:

getrusage04 0 TINFO : Expected timers granularity is 4000 us
getrusage04 0 TINFO : Using 1 as multiply factor for max [us]time increment (1000+4000us)!
getrusage04 0 TINFO : utime: 1763us; stime: 0us
getrusage04 0 TINFO : utime: 3594us; stime: 0us
getrusage04 0 TINFO : utime: 7041us; stime: 3520us
getrusage04 0 TINFO : utime: 7041us; stime: 4548us
getrusage04 0 TINFO : utime: 8124us; stime: 12187us
getrusage04 1 TFAIL : getrusage04.c:132: stime increased > 5000us:

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
  • Loading branch information
krzk authored and metan-ucw committed Jun 7, 2021
1 parent 454a9b9 commit 3e0ba9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testcases/kernel/syscalls/getrusage/getrusage04.c
Expand Up @@ -197,7 +197,7 @@ static void setup(void)
{
tst_sig(NOFORK, DEF_HANDLER, cleanup);

if (tst_is_virt(VIRT_XEN) || tst_is_virt(VIRT_KVM))
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.");

Expand Down

0 comments on commit 3e0ba9a

Please sign in to comment.