]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
check-wrapper-headers test: Adjust Fortran include file directory
authorFlorian Weimer <fweimer@redhat.com>
Thu, 7 Mar 2019 16:28:13 +0000 (17:28 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 7 Mar 2019 16:28:13 +0000 (17:28 +0100)
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.

ChangeLog
scripts/check-wrapper-headers.py

index ee9eebb7735fd7f21b16e890b7c27185bae6838b..c657d7918b6decfde54d68f5544bb1ed72eff0d3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * math/Makefile: Change location where math-vector-fortran.h is
index dc9fd860635949ac65195392ed3ba5a49f151f10..bae99c14c701691640e2ee7d0b2e507c09c1b92a 100644 (file)
@@ -76,7 +76,7 @@ def check_headers(args):
         is_nonsysdep_header = os.access(header, os.R_OK)
         if is_nonsysdep_header:
             # Skip Fortran header files.
-            if '/finclude/' in header:
+            if header.startswith("finclude/"):
                 continue
 
             include_path = os.path.join(args.root, INCLUDE, header)