tests: report error when cs_open() failure
diff --git a/tests/test_ppc.c b/tests/test_ppc.c
index 30d1d2d..5784153 100644
--- a/tests/test_ppc.c
+++ b/tests/test_ppc.c
@@ -90,8 +90,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);