gnulib-tool: Include ftruncate in testdirs.
authorBruno Haible <bruno@clisp.org>
Thu, 27 Jul 2023 21:15:09 +0000 (23:15 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 27 Jul 2023 21:15:09 +0000 (23:15 +0200)
* gnulib-tool (func_create_testdir): Don't exclude module 'ftruncate'
from testdirs by default.
* pygnulib/GLTestDir.py (GLTestDir.execute): Likewise.

ChangeLog
gnulib-tool
pygnulib/GLTestDir.py

index 2deb69cc2f5b25fade854e9db0d30581f3bc24ba..8b08c235cfecaf68187e4c1a6f70c493a83b9e9d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2023-07-27  Bruno Haible  <bruno@clisp.org>
+
+       gnulib-tool: Include ftruncate in testdirs.
+       * gnulib-tool (func_create_testdir): Don't exclude module 'ftruncate'
+       from testdirs by default.
+       * pygnulib/GLTestDir.py (GLTestDir.execute): Likewise.
+
 2023-07-27  Bruno Haible  <bruno@clisp.org>
 
        fnmatch-h, glob-h tests: Fix link errors (regression 2023-07-24).
index 13e3ff297073d8a909fb4387d98c286f9ef6f803..ae1b17f4dd3f7643c26f6df86391d61031b07629 100755 (executable)
@@ -6419,10 +6419,10 @@ func_create_testdir ()
     # Except non-recursive-gnulib-prefix-hack, which represents a nonstandard
     # way of using Automake.
     # Except timevar, which lacks the required file timevar.def.
-    # Except ftruncate, mountlist, which abort the configuration on mingw. FIXME.
+    # Except mountlist, which aborts the configuration on mingw. FIXME.
     # Except lib-ignore, which leads to link errors when Sun C++ is used. FIXME.
     modules=`func_all_modules`
-    modules=`for m in $modules; do case $m in config-h | non-recursive-gnulib-prefix-hack | timevar | ftruncate | mountlist | lib-ignore) ;; *) echo $m;; esac; done`
+    modules=`for m in $modules; do case $m in config-h | non-recursive-gnulib-prefix-hack | timevar | mountlist | lib-ignore) ;; *) echo $m;; esac; done`
   fi
   specified_modules="$modules"
 
index 7a6ef559f1e61f435a8ce5e43734b1783a263cfe..0f5a5ad44688ac1acab30c031f63c31c5df3e73d 100644 (file)
@@ -160,13 +160,13 @@ class GLTestDir(object):
             # Except config-h, which breaks all modules which use HAVE_CONFIG_H.
             # Except non-recursive-gnulib-prefix-hack, which represents a
             # nonstandard way of using Automake.
-            # Except ftruncate, mountlist, which abort the configuration on mingw.
+            # Except mountlist, which aborts the configuration on mingw.
             # Except lib-ignore, which leads to link errors when Sun C++ is used.
             specified_modules = self.modulesystem.list()
             specified_modules = [module
                                  for module in specified_modules
                                  if module not in ['config-h', 'non-recursive-gnulib-prefix-hack',
-                                                   'ftruncate', 'mountlist', 'lib-ignore']]
+                                                   'mountlist', 'lib-ignore']]
 
         # Canonicalize the list of specified modules.
         specified_modules = sorted(set(specified_modules))