int main(int argc, char * const argv[]) { if (initial_check(argc, argv)) return 1; node = argv[1]; libubi = libubi_open(1); if (libubi == NULL) { failed("libubi_open"); return 1; } if (ubi_get_dev_info(libubi, node, &dev_info)) { failed("ubi_get_dev_info"); goto close; } if (test_basic(UBI_DYNAMIC_VOLUME)) goto close; if (test_basic(UBI_STATIC_VOLUME)) goto close; if (test_aligned(UBI_DYNAMIC_VOLUME)) goto close; if (test_aligned(UBI_STATIC_VOLUME)) goto close; libubi_close(libubi); return 0; close: libubi_close(libubi); return 1; }
int main() { int error = 0; check_offloading(); // Clauses error += test_aligned(); error += test_collapsed(); error += test_lastprivate(); error += test_linear(); error += test_private(); error += test_safelen(); // report printf("done with %d errors\n", error); return error; }