logo

utils

~/.local/bin tools and git-hooks git clone https://hacktivis.me/git/utils.git
commit: 0e4a48fcb51bef3eba18845227351e965a524998
parent a07485c34fabaad3b9b3ccc23b0dd38a075616d5
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri,  7 Jul 2023 21:32:28 +0200

test-cmd/touch: Shellcheck can't find sleep(1)

Diffstat:

Mtest-cmd/touch2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/test-cmd/touch b/test-cmd/touch @@ -195,9 +195,11 @@ atf_init_test_cases() { # No support for displaying fractional seconds on FreeBSD stat(1) if uname -s | grep -iq FreeBSD; then + # shellcheck disable=SC2317 maybe_sleep() { sleep 1; } else atf_add_test_case optd_frac + # shellcheck disable=SC2317 maybe_sleep() { sleep .1; } fi }