logo

utils

~/.local/bin tools and git-hooks git clone https://hacktivis.me/git/utils.git
commit: 22f668f2727363989953912fcaaa3ca4aee83367
parent 880631ea49386e729a6c33c2e2e18ad367ed2349
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri, 11 Mar 2022 20:26:53 +0100

test-bin/errno: erange

Diffstat:

Mtest-bin/date2+-
Mtest-bin/errno7+++++++
2 files changed, 8 insertions(+), 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 "match:^strtol: .*\n" ../bin/date -u -d @36893488147419103232 + atf_check -s 'exit:1' -e not-empty ../bin/date -u -d @36893488147419103232 } atf_init_test_cases() { diff --git a/test-bin/errno b/test-bin/errno @@ -29,6 +29,12 @@ einval_body() { fi } +atf_test_case erange +erange_body() { + # 36893488147419103232 = 2^65 + atf_check -s 'exit:1' -e not-empty ../bin/errno 36893488147419103232 +} + atf_init_test_cases() { cd "$(atf_get_srcdir)" || exit 1 @@ -38,4 +44,5 @@ atf_init_test_cases() { atf_add_test_case noargs atf_add_test_case devfull atf_add_test_case einval + atf_add_test_case erange }