logo

utils

~/.local/bin tools and git-hooks git clone https://hacktivis.me/git/utils.git
commit: 2463840737480200ebc53ce59750526881c8d11b
parent 8db047d4599783d367b202e9b7799e0ce1bcaa06
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri, 11 Mar 2022 20:03:00 +0100

test-bin/date: Error message for ERANGE is non-standard

POSIX: Result too large.
musl: Result not representable
GNU libc: Numerical result out of range
NetBSD: Result too large or too small

Diffstat:

Mtest-bin/date2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test-bin/date b/test-bin/date @@ -53,7 +53,7 @@ timestamp_body() { atf_check -s 'exit:1' ../bin/date -u -d 69 # 36893488147419103232 = 2^65 - atf_check -s 'exit:1' -e 'inline:strtol: Result not representable\n' ../bin/date -u -d @36893488147419103232 + atf_check -s 'exit:1' -e "match:^strtol: .*\n" ../bin/date -u -d @36893488147419103232 } atf_init_test_cases() {