]> Savannah Git Hosting - gnulib.git/commitdiff
xstrtol, xstrtoll tests: Improve comment.
authorBruno Haible <bruno@clisp.org>
Fri, 26 Jul 2024 09:32:27 +0000 (11:32 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 26 Jul 2024 09:32:27 +0000 (11:32 +0200)
* tests/test-xstrtol.c (main): Clarify that the new test exercises
undefined behaviour.

ChangeLog
tests/test-xstrtol.c

index 0c35378606bff47b95656acdf8f249585fc69052..2f2a949b77c587024a177cdabdc6bce8e402b4c4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-07-26  Bruno Haible  <bruno@clisp.org>
+
+       xstrtol, xstrtoll tests: Improve comment.
+       * tests/test-xstrtol.c (main): Clarify that the new test exercises
+       undefined behaviour.
+
 2024-07-25  Paul Eggert  <eggert@cs.ucla.edu>
 
        xstrtol: remove the base-checking changes
index 13ee24219bbc7522fdb6dc8dab254e4108b59cb6..2b2b51a47e95419da827c5165b4f56c3c2c41f3c 100644 (file)
@@ -67,7 +67,8 @@ main (int argc, char **argv)
     {
       /* Miscellaneous test cases.  */
 
-      /* Test an invalid base.  Reported by Alejandro Colomar.  */
+      /* Test an invalid base (undefined behaviour, as documented in xstrtol.h).
+         Reported by Alejandro Colomar.  */
       {
         const char input[] = "k";
         char *endp = NULL;