testsuite: clean up .gcov files in test-suite.
authorMartin Liska <mliska@suse.cz>
Wed, 17 Jun 2020 11:42:20 +0000 (13:42 +0200)
committerMartin Liska <mliska@suse.cz>
Wed, 17 Jun 2020 11:42:20 +0000 (13:42 +0200)
gcc/testsuite/ChangeLog:

PR testsuite/95720
* gcc.misc-tests/gcov-pr94029.c: Remove not needed remove-gcda.
* lib/gcov.exp: Delete properly .gcov files.

gcc/testsuite/gcc.misc-tests/gcov-pr94029.c
gcc/testsuite/lib/gcov.exp

index 84d9b9b2749a142ba8183ff26a0d4702449e6d41..82b378a84fa002227345c5e247a67b16157092bb 100644 (file)
@@ -11,4 +11,4 @@ int main()
   return 0;
 }
 
-/* { dg-final { run-gcov remove-gcda gcov-pr94029.c } } */
+/* { dg-final { run-gcov gcov-pr94029.c } } */
index a2832ec4f05fa9d78e7dfe4ff706ea4efb7ae877..9276aead06bbe48eb6d8d84ce33bce69e5a43248 100644 (file)
@@ -39,8 +39,8 @@ proc clean-gcov-file { testcase suffix } {
 proc clean-gcov { testcase } {
     clean-gcov-file $testcase "gcno"
     clean-gcov-file $testcase "gcda"
-    clean-gcov-file $testcase "gcov"
     clean-gcov-file $testcase "h.gcov"
+    remote_file host delete "$testcase.gcov"
 }
 
 #