From: Arnaud Giersch Date: Sun, 20 Oct 2019 19:03:22 +0000 (+0200) Subject: Die on error. X-Git-Tag: v3.25~509 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/84bdf0a8dcb3171b09151456304f870d99d6baf2?ds=sidebyside Die on error. --- diff --git a/contrib/benchmarking_code_block/inject.h b/contrib/benchmarking_code_block/inject.h index 507e8dbb1a..f5a9261ecd 100644 --- a/contrib/benchmarking_code_block/inject.h +++ b/contrib/benchmarking_code_block/inject.h @@ -56,8 +56,7 @@ static inline void xbt_inject_init(char *inputfile) { xbt_dict_t mydict = get_dict(); FILE* fpInput = fopen(inputfile, "r"); - if (fpInput == NULL) - printf("Error while opening the inputfile"); + xbt_assert(fpInput != NULL, "Error while opening the inputfile"); fseek(fpInput, 0, 0); char line[200];