/*------------------------------------------------------------------------- * Function: main * * Purpose: * * Return: Success: * * Failure: * * Programmer: Robb Matzke * Tuesday, June 16, 1998 * *------------------------------------------------------------------------- */ int main(void) { int nerrors = 0; /* * Open the library explicitly. */ H5open(); nerrors += test_find() < 0 ? 1 : 0; nerrors += test_set() < 0 ? 1 : 0; nerrors += test_clear() < 0 ? 1 : 0; nerrors += test_copy() < 0 ? 1 : 0; nerrors += test_shift() < 0 ? 1 : 0; nerrors += test_increment() < 0 ? 1 : 0; nerrors += test_decrement() < 0 ? 1 : 0; nerrors += test_negate() < 0 ? 1 : 0; if(nerrors) { printf("***** %u FAILURE%s! *****\n", nerrors, 1 == nerrors ? "" : "S"); exit(1); } printf("All bit tests passed.\n"); H5close(); return 0; }
/*------------------------------------------------------------------------- * Function: main * * Purpose: * * Return: Success: * * Failure: * * Programmer: Robb Matzke * Tuesday, June 16, 1998 * * Modifications: * *------------------------------------------------------------------------- */ int main (void) { int nerrors=0; /* * Open the library explicitly for thread-safe builds, so per-thread * things are initialized correctly. */ #ifdef H5_HAVE_THREADSAFE H5open(); #endif /* H5_HAVE_THREADSAFE */ nerrors += test_find ()<0?1:0; nerrors += test_set ()<0?1:0; nerrors += test_clear()<0?1:0; nerrors += test_copy ()<0?1:0; nerrors += test_shift()<0?1:0; nerrors += test_increment ()<0?1:0; nerrors += test_decrement ()<0?1:0; nerrors += test_negate ()<0?1:0; if (nerrors) { printf("***** %u FAILURE%s! *****\n", nerrors, 1==nerrors?"":"S"); exit(1); } printf("All bit tests passed.\n"); #ifdef H5_HAVE_THREADSAFE H5close(); #endif /* H5_HAVE_THREADSAFE */ return 0; }
int main() { test_arithmetic(); test_not(); test_factorial(); test_increment(); test_decrement(); test_unary_plus(); test_unary_minus(); test_arithmetic_compound_assign(); test_anti_associativity(); test_comma_operator(); test_integer_types(); return 0; }
int main(int argc, const char **argv) { test_create(); test_to_long_long(); test_compare(); test_add(); test_subtract(); test_increment(); test_decrement(); test_performance(); printf("\nAll tests passed!\n"); return EXIT_SUCCESS; };
int main() { test_increment(); return 0; }