/* * ut_done -- indicate test is done, exit program */ void ut_done(const char *file, int line, const char *func, const char *fmt, ...) { va_list ap; va_start(ap, fmt); check_open_files(); prefix(file, line, func, 0); vout(OF_NAME, "Done", fmt, ap); va_end(ap); if (Outfp != NULL) fclose(Outfp); if (Errfp != NULL) fclose(Errfp); if (Tracefp != NULL) fclose(Tracefp); exit(0); }
/* * ut_done -- indicate test is done, exit program */ void ut_done(const char *file, int line, const char *func, const char *fmt, ...) { va_list ap; va_start(ap, fmt); if (!getenv("UNITTEST_DO_NOT_CHECK_OPEN_FILES")) check_open_files(); prefix(file, line, func, 0); vout(OF_NAME, "Done", fmt, ap); va_end(ap); if (Outfp != NULL) fclose(Outfp); if (Errfp != NULL) fclose(Errfp); if (Tracefp != NULL) fclose(Tracefp); exit(0); }