[2/2] validation: system: fix odp_sys_huge_page_size() test

Message ID 1496069179-10504-2-git-send-email-matias.elo@nokia.com
State New
Headers show
Series
  • [1/2] linux-gen: shm: fix init on systems not supporting huge pages
Related show

Commit Message

Matias Elo May 29, 2017, 2:46 p.m.
Zero is valid return value on systems not supporting huge pages.

Signed-off-by: Matias Elo <matias.elo@nokia.com>

---
 test/common_plat/validation/api/system/system.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

-- 
2.7.4

Patch hide | download patch | download mbox

diff --git a/test/common_plat/validation/api/system/system.c b/test/common_plat/validation/api/system/system.c
index 57ff34e..538236e 100644
--- a/test/common_plat/validation/api/system/system.c
+++ b/test/common_plat/validation/api/system/system.c
@@ -211,7 +211,8 @@  void system_test_odp_sys_huge_page_size(void)
 	uint64_t page;
 
 	page = odp_sys_huge_page_size();
-	CU_ASSERT(0 < page);
+	if (page == 0)
+		printf("Huge pages not supported\n");
 }
 
 int system_check_odp_cpu_hz(void)