void wipe_working_dir::crpcut_on_ok_action(const char *wd_name) const { if (test_case_factory::tests_as_child_procs()) { static char namebuff[PATH_MAX] = ""; char *end = lib::strcpy(namebuff, wd_name); wipe_dir(namebuff, end); } }
// Wipe all cached files in all subdirectories. void wipe_all(struct conf *conf) { for (int i = 0; i <= 0xF; i++) { char *dname = format("%s/%1x", conf->cache_dir, i); wipe_dir(dname); free(dname); } // Fix the counters. clean_up_all(conf); }