Esempio n. 1
0
int main (int argc, char *argv[]) {
	testing_base tb = testing_new (argc, argv, 0);
	TEST_RUN (tb, test_counter_zero);
	TEST_RUN (tb, test_counter_non_zero);
	TEST_RUN (tb, test_counter_decrement);
	return (testing_base_exit (tb));
}
Esempio n. 2
0
int main(int argv, char **args) {
    testing_t *testing = testing_new();
    if(testing == NULL)
        return 1;
    testing_test(testing, argv, args);
    int ret = testing_result(testing);
    
    if(ret != 0)
        return 0;
    else
        return 1;
}