tests: report error when cs_open() failure
diff --git a/tests/test_mips.c b/tests/test_mips.c
index a18f100..02f8d88 100644
--- a/tests/test_mips.c
+++ b/tests/test_mips.c
@@ -98,8 +98,11 @@
 	int i;
 
 	for (i = 0; i < sizeof(platforms)/sizeof(platforms[0]); i++) {
-		if (cs_open(platforms[i].arch, platforms[i].mode, &handle))
+		cs_err err = cs_open(platforms[i].arch, platforms[i].mode, &handle);
+		if (err) {
+			printf("Failed on cs_open() with error returned: %u\n", err);
 			return;
+		}
 
 		cs_option(handle, CS_OPT_DETAIL, CS_OPT_ON);