logo

utils-std

Collection of commonly available Unix tools
commit: 88e4095181962d4d23cfd822e94d64dfb1ec8476
parent 45c1d68ab10db2fea5eb3e02664273f42791f587
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Tue, 26 Sep 2023 18:00:33 +0200

test-cmd/sleep.t: Re-introduce

Diffstat:

Atest-cmd/sleep.t19+++++++++++++++++++
1 file changed, 19 insertions(+), 0 deletions(-)

diff --git a/test-cmd/sleep.t b/test-cmd/sleep.t @@ -0,0 +1,19 @@ +#!/usr/bin/env cram +# SPDX-FileCopyrightText: 2017-2023 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me> +# SPDX-License-Identifier: MPL-2.0 + + $ cd $TESTDIR/../cmd + + $ ./sleep + sleep: Got a total duration of 0 + [1] + + $ ./sleep -f + strtodur: (Error: Not a number: -f|sscanf: Invalid argument) (re) + [1] + + $ ./sleep 0 + sleep: Got a total duration of 0 + [1] + + $ ./sleep 1