]> rtime.felk.cvut.cz Git - hercules2020/jailhouse-build.git/commitdiff
jailhouse-test: Add test for non-overflowed memory statistics
authorMichal Sojka <michal.sojka@cvut.cz>
Wed, 28 Nov 2018 12:02:42 +0000 (13:02 +0100)
committerMichal Sojka <michal.sojka@cvut.cz>
Wed, 28 Nov 2018 12:02:42 +0000 (13:02 +0100)
Currently, this test fails.

jailhouse
test/memguard-test.c

index 3e7d5abccfd59eb737115666cd045bcd3cf43021..51d7b1f9a95d27f768798264bcbb18dca93b5dc8 160000 (submodule)
--- a/jailhouse
+++ b/jailhouse
@@ -1 +1 @@
-Subproject commit 3e7d5abccfd59eb737115666cd045bcd3cf43021
+Subproject commit 51d7b1f9a95d27f768798264bcbb18dca93b5dc8
index 934e1bfd0cb99c12933bd23064cd3571a3d7f21d..21d68ea3912f3caa3beccde244261be9de823174 100644 (file)
@@ -181,6 +181,8 @@ void *test_thread(void *ptr)
                r = MGTEST(5000, 10000, flags, compute_kernel(1000));
                WVPASS(!r.time_ovf);
                WVPASS(r.time > 900);
+               WVPASS(!r.mem_ovf < 10000);
+               WVPASS(r.mem < 10000);
                MGTESTEND();
 
                r = MGTEST(500, 10000, flags, compute_kernel(1000));