Testsuite: check actual_prof_file only when needed