[Skiboot] [PATCH 1/6] core/test/run-msg: don't depend on unittest mem layout

Stewart Smith stewart at linux.vnet.ibm.com
Thu Aug 24 17:39:43 AEST 2017


In the world of unit tests all "RAM" is valid

Signed-off-by: Stewart Smith <stewart at linux.vnet.ibm.com>
---
 core/test/run-msg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/test/run-msg.c b/core/test/run-msg.c
index 3a7b7dd395f2..2cee5155a4c2 100644
--- a/core/test/run-msg.c
+++ b/core/test/run-msg.c
@@ -24,7 +24,7 @@ static bool zalloc_should_fail = false;
 static int zalloc_should_fail_after = 0;
 
 /* Fake top_of_ram -- needed for API's */
-unsigned long top_of_ram = 16ULL * 1024 * 1024 * 1024;
+unsigned long top_of_ram = 0xffffffffffffffffULL;
 
 static void *zalloc(size_t size)
 {
-- 
2.13.5



More information about the Skiboot mailing list