tests: continue to next tests rather than quit when failing to initialize a test

_v3_old
Nguyen Anh Quynh 11 years ago
parent 1181a851b9
commit 491469155e
  1. 2
      tests/test.c
  2. 2
      tests/test_arm.c
  3. 2
      tests/test_arm64.c
  4. 2
      tests/test_detail.c
  5. 2
      tests/test_mips.c
  6. 2
      tests/test_ppc.c
  7. 2
      tests/test_x86.c

@ -155,7 +155,7 @@ static void test()
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;
continue;
}
if (platforms[i].opt_type)

@ -196,7 +196,7 @@ static void test()
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;
continue;
}
cs_option(handle, CS_OPT_DETAIL, CS_OPT_ON);

@ -154,7 +154,7 @@ static void test()
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;
continue;
}
cs_option(handle, CS_OPT_DETAIL, CS_OPT_ON);

@ -152,7 +152,7 @@ static void test()
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;
continue;
}
if (platforms[i].opt_type)

@ -101,7 +101,7 @@ static void test()
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;
continue;
}
cs_option(handle, CS_OPT_DETAIL, CS_OPT_ON);

@ -93,7 +93,7 @@ static void test()
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;
continue;
}
cs_option(handle, CS_OPT_DETAIL, CS_OPT_ON);

@ -168,7 +168,7 @@ static void test()
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;
continue;
}
if (platforms[i].opt_type)

Loading…
Cancel
Save