test/mbox: Use assertions for error handling

No need to try to exit gracefully in the test cases.

Change-Id: Id558c5201c08bdb0b34859cb3af1a0efa1a2809b
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
diff --git a/test/mbox.c b/test/mbox.c
index f7560f1..8897924 100644
--- a/test/mbox.c
+++ b/test/mbox.c
@@ -292,11 +292,8 @@
 
 	/* Sanity check */
 	arg = container_of(context, struct mbox_test_context, context);
-	if (&test != arg)
-		return -1;
-
-	if (len > test.context.mtd_info.size)
-		return -2;
+	assert(&test == arg);
+	assert(len <= test.context.flash_size);
 
 	map = mmap(NULL, test.context.mtd_info.size, PROT_WRITE, MAP_SHARED,
 			test.flash.fd, 0);