Signed-off-by: Timothy Manning <codedraftsman@gmail.com>
run_random_test_loop();
}
/*this is where the loop should break to*/
run_random_test_loop();
}
/*this is where the loop should break to*/
get_error();
print_message("\n\n",1);
if (get_exit_on_error()){
get_error();
print_message("\n\n",1);
if (get_exit_on_error()){
get_error();
printf("\n\n");
if (get_exit_on_error()){
get_error();
printf("\n\n");
if (get_exit_on_error()){
-void quit_quick_tests(int exit_code)
{
/*char message[30];
message[0]='\0';
{
/*char message[30];
message[0]='\0';
}
printf("out of %d tests, %d ran: %d passed and %d failed\n\n\n", total_number_of_tests,(num_of_tests_pass+num_of_tests_failed) ,num_of_tests_pass,num_of_tests_failed);
yaffs_unmount(YAFFS_MOUNT_POINT);
}
printf("out of %d tests, %d ran: %d passed and %d failed\n\n\n", total_number_of_tests,(num_of_tests_pass+num_of_tests_failed) ,num_of_tests_pass,num_of_tests_failed);
yaffs_unmount(YAFFS_MOUNT_POINT);
+
+ //remember that the exit_code needs to be 0 when all the tests pass.
+ int exit_code = num_of_tests_failed != 0;
void logical_run_of_tests(void);
void init_quick_tests(int argc, char *argv[]);
void logical_run_of_tests(void);
void init_quick_tests(int argc, char *argv[]);
-void quit_quick_tests(int exit_code);
+void quit_quick_tests();
void get_error(void);
void run_random_test_loop(void);
void run_test(int x);
void get_error(void);
void run_random_test_loop(void);
void run_test(int x);