[test suite] don't remove .gcov/.gcda profiling files in --list-mode
authorMichael Rash <mbr@cipherdyne.org>
Wed, 19 Mar 2014 00:39:25 +0000 (20:39 -0400)
committerMichael Rash <mbr@cipherdyne.org>
Wed, 19 Mar 2014 00:39:25 +0000 (20:39 -0400)
test/test-fwknop.pl

index 53c8668..8df182a 100755 (executable)
@@ -5805,7 +5805,8 @@ sub init() {
 
     if ($gcov_path) {
         if ($enable_profile_coverage_check
-                and not $preserve_previous_coverage_files) {
+                and not $preserve_previous_coverage_files
+                and not $list_mode) {
             for my $extension ('*.gcov', '*.gcda') {
                 ### remove profile output from any previous run
                 system qq{find .. -name $extension | xargs rm 2> /dev/null};