]> Savannah Git Hosting - gnulib.git/commitdiff
time: Fix test failure on AIX 7.2.
authorBruno Haible <bruno@clisp.org>
Fri, 17 Mar 2023 17:53:43 +0000 (18:53 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 17 Mar 2023 17:53:43 +0000 (18:53 +0100)
* m4/time.m4 (gl_FUNC_TIME): Guess that it does not work on AIX.
* doc/posix-functions/time.texi: Mention the bug on AIX.

ChangeLog
doc/posix-functions/time.texi
m4/time.m4

index 3249000a4dc8d876405ce2882f6e71a0d40ff0b7..27eea4df8c7f9c4a5d698677ff992905a4b4f78e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2023-03-17  Bruno Haible  <bruno@clisp.org>
 
+       time: Fix test failure on AIX 7.2.
+       * m4/time.m4 (gl_FUNC_TIME): Guess that it does not work on AIX.
+       * doc/posix-functions/time.texi: Mention the bug on AIX.
+
        time: Fix test failure on native Windows.
        * m4/time.m4 (gl_FUNC_TIME): Guess that it does not work on native
        Windows.
index 5d7c719594358da5232e1842b70caba91092e8a1..c744c63974a675cc32dbca56dff480b4077d846c 100644 (file)
@@ -12,10 +12,10 @@ Portability problems fixed by Gnulib:
 This function is not consistent with @code{gettimeofday} and @code{timespec_get}
 on some platforms:
 @c https://sourceware.org/bugzilla/show_bug.cgi?id=30200
-glibc 2.31 or newer on Linux, native Windows.
-Namely, in the first 1 to 2.5 milliseconds of every second (or, on Windows,
-in the first 5 milliseconds of every second), @code{time} returns a value
-that is one less than the @code{tv_sec} part of the return value of
+glibc 2.31 or newer on Linux, AIX 7.2, native Windows.
+Namely, in the first 1 to 2.5 milliseconds of every second (or, on AIX and
+Windows, in the first 5 milliseconds of every second), @code{time} returns
+a value that is one less than the @code{tv_sec} part of the return value of
 @code{gettimeofday} or @code{timespec_get}.
 @end itemize
 
index 504ec77f8824850c70dcffacc8706c71199f555c..4c4e411736e1424563bef73ef494833ec85dc749 100644 (file)
@@ -1,4 +1,4 @@
-# time.m4 serial 2
+# time.m4 serial 3
 dnl Copyright (C) 2023 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -16,6 +16,7 @@ AC_DEFUN([gl_FUNC_TIME],
      dnl   - glibc >= 2.31 with Linux. And binaries produced on glibc < 2.31
      dnl     need to run fine on newer glibc versions as well; therefore ignore
      dnl     __GLIBC_MINOR__.
+     dnl   - AIX,
      dnl   - native Windows.
      case "$host_os" in
        linux*-gnu*)
@@ -30,6 +31,7 @@ AC_DEFUN([gl_FUNC_TIME],
            [gl_cv_func_time_works="guessing no"],
            [gl_cv_func_time_works="guessing yes"])
          ;;
+       aix*)   gl_cv_func_time_works="guessing no";;
        mingw*) gl_cv_func_time_works="guessing no";;
        *) gl_cv_func_time_works="guessing yes";;
      esac