From f83d70a503a402de451db694242145f555438ac4 Mon Sep 17 00:00:00 2001 From: David van Moolenbroek Date: Fri, 5 Aug 2016 10:32:04 +0000 Subject: [PATCH] tests: fix bug in sys_vumap test Ever since a VM allocation strategy change, this test is fully dysfunctional. It should be repaired and added to the regular test set, but that will require some work. For now, keep it in reasonable shape. Reported by dcb314. This closes #153. Change-Id: Ia57bdfdf6a3fc8d47cae76a0be9881fb4d796f6d --- minix/tests/kernel/sys_vumap/vumaptest.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/minix/tests/kernel/sys_vumap/vumaptest.c b/minix/tests/kernel/sys_vumap/vumaptest.c index 0b2627d7a..0dc00b939 100644 --- a/minix/tests/kernel/sys_vumap/vumaptest.c +++ b/minix/tests/kernel/sys_vumap/vumaptest.c @@ -2,6 +2,7 @@ #include #include #include +#include #include #include "com.h" @@ -1075,7 +1076,7 @@ static void test_access(void) expect(r == OK); /* Same story but more possibilities. I hope I got this right. */ - expect(pcount >= 3 || pcount <= 6); + expect(pcount >= 3 && pcount <= 6); for (i = 0; i < 7; i++) expect(is_buf_allocated(&buf[i])); expect(pvecp[0].vp_addr = buf[0].phys); -- 2.44.0