switch detail to be CS_OPT_OFF by default
diff --git a/cs.c b/cs.c
index ed709ce..c7293e5 100644
--- a/cs.c
+++ b/cs.c
@@ -105,7 +105,8 @@
ud->mode = mode;
ud->big_endian = mode & CS_MODE_BIG_ENDIAN;
ud->reg_name = NULL;
- ud->detail = CS_OPT_ON; // by default break instruction into details
+ // by default, do not break instruction into details
+ ud->detail = CS_OPT_OFF;
arch_init[ud->arch](ud);
diff --git a/tests/test.c b/tests/test.c
index a1c7eb7..0b32e55 100644
--- a/tests/test.c
+++ b/tests/test.c
@@ -161,8 +161,6 @@
if (platforms[i].opt_type)
cs_option(handle, platforms[i].opt_type, platforms[i].opt_value);
- //cs_option(handle, CS_OPT_DETAIL, CS_OPT_OFF);
-
size_t count = cs_disasm_ex(handle, platforms[i].code, platforms[i].size, address, 0, &insn);
if (count) {
printf("****************\n");
diff --git a/tests/test_arm.c b/tests/test_arm.c
index 71811b7..71ccbb9 100644
--- a/tests/test_arm.c
+++ b/tests/test_arm.c
@@ -196,6 +196,8 @@
if (cs_open(platforms[i].arch, platforms[i].mode, &handle))
return;
+ cs_option(handle, CS_OPT_DETAIL, CS_OPT_ON);
+
size_t count = cs_disasm_ex(handle, platforms[i].code, platforms[i].size, address, 0, &insn);
if (count) {
printf("****************\n");
diff --git a/tests/test_arm64.c b/tests/test_arm64.c
index ab4f4be..3fd3d22 100644
--- a/tests/test_arm64.c
+++ b/tests/test_arm64.c
@@ -154,6 +154,8 @@
if (cs_open(platforms[i].arch, platforms[i].mode, &handle))
return;
+ cs_option(handle, CS_OPT_DETAIL, CS_OPT_ON);
+
size_t count = cs_disasm_ex(handle, platforms[i].code, platforms[i].size, address, 0, &insn);
if (count) {
printf("****************\n");
diff --git a/tests/test_detail.c b/tests/test_detail.c
index 9401900..2174b8d 100644
--- a/tests/test_detail.c
+++ b/tests/test_detail.c
@@ -155,7 +155,7 @@
if (platforms[i].opt_type)
cs_option(handle, platforms[i].opt_type, platforms[i].opt_value);
- //cs_option(handle, CS_OPT_DETAIL, CS_OPT_OFF);
+ cs_option(handle, CS_OPT_DETAIL, CS_OPT_ON);
size_t count = cs_disasm_ex(handle, platforms[i].code, platforms[i].size, address, 0, &all_insn);
if (count) {
diff --git a/tests/test_mips.c b/tests/test_mips.c
index 0a77785..a18f100 100644
--- a/tests/test_mips.c
+++ b/tests/test_mips.c
@@ -101,6 +101,8 @@
if (cs_open(platforms[i].arch, platforms[i].mode, &handle))
return;
+ cs_option(handle, CS_OPT_DETAIL, CS_OPT_ON);
+
size_t count = cs_disasm_ex(handle, platforms[i].code, platforms[i].size, address, 0, &insn);
if (count) {
printf("****************\n");
diff --git a/tests/test_ppc.c b/tests/test_ppc.c
index 91d267f..30d1d2d 100644
--- a/tests/test_ppc.c
+++ b/tests/test_ppc.c
@@ -93,6 +93,8 @@
if (cs_open(platforms[i].arch, platforms[i].mode, &handle))
return;
+ cs_option(handle, CS_OPT_DETAIL, CS_OPT_ON);
+
size_t count = cs_disasm_ex(handle, platforms[i].code, platforms[i].size, address, 0, &insn);
if (count) {
printf("****************\n");
diff --git a/tests/test_x86.c b/tests/test_x86.c
index dc502cd..7be66ad 100644
--- a/tests/test_x86.c
+++ b/tests/test_x86.c
@@ -171,6 +171,8 @@
if (platforms[i].opt_type)
cs_option(handle, platforms[i].opt_type, platforms[i].opt_value);
+ cs_option(handle, CS_OPT_DETAIL, CS_OPT_ON);
+
size_t count = cs_disasm_ex(handle, platforms[i].code, platforms[i].size, address, 0, &insn);
if (count) {
printf("****************\n");