http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60599
Bug ID: 60599
Summary: [4.9 Regression] Testsuite's scan-module-absence no
longer works
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: burnus at gcc dot gnu.org
CC: jb at gcc dot gnu.org
The test suite moved to zipped files. That broke the implicit_pure*f90 test
cases, which use, e.g.,
! { dg-final { scan-module-absence "m" "IMPLICIT_PURE" } }
That function defined in gcc/testsuite/lib/gcc-dg.exp:
set modfilename [string tolower [lindex $args 0]].mod
set fd [open $modfilename r]
set text [read $fd]
close $fd
That code obviously fails when the file is zipped.
Note that scan-module in the same file contains a "gzip" to handle this case.