This is a fix to an obvious issue in gcov.exp, where proc verify-intermediate returns without closing the open file.
This can be a possible fix to PR85871. gcov-8.C diffs to other gcov testcases that it invokes verify-intermediate. Not closing an open file may result in random failure quietly. It is only a possible fix as I failed to reproduce the PR85871 random failure in my local machine despite continuous testing of multiple days. So I cannot verify if this patch fixes the regression either. To verify, https://gcc.gnu.org/ml/gcc-testresults/ need to be watched whether gcov-8 regression will disappear completely one month after this patch committed to trunk. Tested with make check with no new regressions. OK to trunk? testsuite/ChangeLog: 2018-09-05 Joey Ye <joey...@arm.com> * lib/gcov.exp (verify-intermediate): Add missing close.
gcov-20180905.patch
Description: gcov-20180905.patch