https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121215

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
possible fix:
```
[apinski@xeond2 lib]$ git diff profopt.exp
diff --git a/gcc/testsuite/lib/profopt.exp b/gcc/testsuite/lib/profopt.exp
index b4d244b3132..13cc5956ec8 100644
--- a/gcc/testsuite/lib/profopt.exp
+++ b/gcc/testsuite/lib/profopt.exp
@@ -382,6 +382,7 @@ proc profopt-execute { src } {
            unsupported "$testcase"
            unset testname_with_flags
            verbose "$src not supported on this target, skipping it" 3
+           cleanup-after-saved-dg-test
            return
        }

@@ -458,6 +459,7 @@ proc profopt-execute { src } {
                    unsupported "$testcase -fauto-profile: cannot run
create_gcov"
                    unset testname_with_flags
                    set status "fail"
+                   cleanup-after-saved-dg-test
                    return
                }
                set status [remote_wait "" 300]

```

Reply via email to