From: Bruno Haible Date: Fri, 26 Jul 2024 09:32:27 +0000 (+0200) Subject: xstrtol, xstrtoll tests: Improve comment. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=959be45b560b9fd6f23e828a304d202484f69397;p=gnulib.git xstrtol, xstrtoll tests: Improve comment. * tests/test-xstrtol.c (main): Clarify that the new test exercises undefined behaviour. --- diff --git a/ChangeLog b/ChangeLog index 0c35378606..2f2a949b77 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-07-26 Bruno Haible + + xstrtol, xstrtoll tests: Improve comment. + * tests/test-xstrtol.c (main): Clarify that the new test exercises + undefined behaviour. + 2024-07-25 Paul Eggert xstrtol: remove the base-checking changes diff --git a/tests/test-xstrtol.c b/tests/test-xstrtol.c index 13ee24219b..2b2b51a47e 100644 --- a/tests/test-xstrtol.c +++ b/tests/test-xstrtol.c @@ -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;