check-wrapper-headers test: Adjust Fortran include file directory

The check for "/finclude/" fails with the actual location of
Fortran headers because they are now stored in the "finclude"
subdirectory of the top-level include directory, so a relative path
does not contain a slash '/' before the "finclude" string.
This commit is contained in:
Florian Weimer 2019-03-07 17:28:13 +01:00
parent ae51497134
commit 27a2f2f34c
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2019-03-07 Florian Weimer <fweimer@redhat.com>
* scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
header check.
2019-03-07 Martin Liska <mliska@suse.cz> 2019-03-07 Martin Liska <mliska@suse.cz>
* math/Makefile: Change location where math-vector-fortran.h is * math/Makefile: Change location where math-vector-fortran.h is

View File

@ -76,7 +76,7 @@ def check_headers(args):
is_nonsysdep_header = os.access(header, os.R_OK) is_nonsysdep_header = os.access(header, os.R_OK)
if is_nonsysdep_header: if is_nonsysdep_header:
# Skip Fortran header files. # Skip Fortran header files.
if '/finclude/' in header: if header.startswith("finclude/"):
continue continue
include_path = os.path.join(args.root, INCLUDE, header) include_path = os.path.join(args.root, INCLUDE, header)