benchmark: return error when fail
This commit is contained in:
parent
d41f447c17
commit
2e7c5934ed
3 changed files with 3 additions and 3 deletions
|
@ -333,7 +333,7 @@ MAIN_RETURN_TYPE main(int argc, char *argv[]) {
|
||||||
/* And last call any target specific code for finalizing */
|
/* And last call any target specific code for finalizing */
|
||||||
portable_fini(&(results[0].port));
|
portable_fini(&(results[0].port));
|
||||||
|
|
||||||
return MAIN_RETURN_VAL;
|
return total_errors;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -944,7 +944,7 @@ int main ()
|
||||||
880900 / (int)User_Time * NUMBER_OF_RUNS/ 500000);
|
880900 / (int)User_Time * NUMBER_OF_RUNS/ 500000);
|
||||||
printf(" vs. 100000 Marks (i7-7700K @ 4.20GHz)\n");
|
printf(" vs. 100000 Marks (i7-7700K @ 4.20GHz)\n");
|
||||||
|
|
||||||
return 0;
|
return (pass ? 0 : 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -149,7 +149,7 @@ int main(const char *args) {
|
||||||
}
|
}
|
||||||
printf("Scored time: %s ms\n", format_time(score_time));
|
printf("Scored time: %s ms\n", format_time(score_time));
|
||||||
printf("Total time: %s ms\n", format_time(total_time));
|
printf("Total time: %s ms\n", format_time(total_time));
|
||||||
return 0;
|
return (pass ? 0 : 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Libraries
|
// Libraries
|
||||||
|
|
Loading…
Reference in a new issue