logo

utils

~/.local/bin tools and git-hooks git clone https://hacktivis.me/git/utils.git
commit: 10f757d836f8ae42623f6cad2379930939aa0e75
parent 3f5c37ade3b274a4b5fb4414de9d01afaa08c653
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri, 11 Mar 2022 17:43:23 +0100

test-bin/date: -d missing an operand & bad format

Diffstat:

Mtest-bin/date3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/test-bin/date b/test-bin/date @@ -43,6 +43,9 @@ timestamp_body() { atf_check -o "inline:1970-01-01T00:00:00\n" ../bin/date -u -d @0 '+%FT%T' atf_check -o "inline:1970-01-01T00:01:09\n" ../bin/date -u -d @69 '+%FT%T' atf_check -o "inline:1969-12-31T23:58:51\n" ../bin/date -u -d @-69 '+%FT%T' + + atf_check -s 'exit:1' -e "inline:Error: Missing operand for option: '-d'\ndate [-u][-d datetime] [+format]\n" ../bin/date -u -d + atf_check -s 'exit:1' ../bin/date -u -d 69 } atf_init_test_cases() {