logo

utils-std

Collection of commonly available Unix tools
commit: 49f92b27a3b534c831586fcd29f8bb73dd32fd8c
parent 9936d2a7f42b01590f8babed24020ecdbd9abac0
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun, 28 Jul 2024 00:33:40 +0200

test-cmd/touch: Specify file to sync

Diffstat:

Mtest-cmd/touch9+++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/test-cmd/touch b/test-cmd/touch @@ -139,7 +139,7 @@ optd_body() { export TZ=UTC atf_check ../cmd/touch -d 2003-06-02T13:37:42Z ./foo_d - sync + sync ./foo_d atf_check -o 'match:^2003-06-02[T ]13:37:42(\.0+)? ?(Z|[\+\-]00:?00)$' ./stat_atime ./foo_d atf_check -o 'match:^2003-06-02[T ]13:37:42(\.0+)? ?(Z|[\+\-]00:?00)$' ./stat_mtime ./foo_d } @@ -149,11 +149,12 @@ optd_tz_body() { export TZ=UTC atf_check ../cmd/touch -d 2003-04-20T13:37:42+0000 ./foo_tz1 - sync + sync ./foo_tz1 atf_check -o 'match:^2003-04-20[T ]13:37:42(\.[0-9]+)? ?(Z|[\+\-]00:?00)$' ./stat_atime ./foo_tz1 atf_check -o 'match:^2003-04-20[T ]13:37:42(\.[0-9]+)? ?(Z|[\+\-]00:?00)$' ./stat_mtime ./foo_tz1 atf_check ../cmd/touch -d 2003-04-20T13:37:42.0+0666 ./foo_tz2 + sync ./foo_tz2 atf_check -o 'match:^2003-04-20[T ]06:31:42(\.[0-9]+)? ?(Z|[\+\-]00:?00)$' ./stat_atime ./foo_tz2 atf_check -o 'match:^2003-04-20[T ]06:31:42(\.[0-9]+)? ?(Z|[\+\-]00:?00)$' ./stat_mtime ./foo_tz2 } @@ -163,12 +164,12 @@ optd_frac_body() { export TZ=UTC atf_check ../cmd/touch -d 2003-06-02T13:37:42.713Z ./foo_frac1 - sync + sync ./foo_frac1 atf_check -o 'match:^2003-06-02[T ]13:37:42.7130+ ?(Z|[\+\-]00:?00)$' ./stat_atime ./foo_frac1 atf_check -o 'match:^2003-06-02[T ]13:37:42.7130+ ?(Z|[\+\-]00:?00)$' ./stat_mtime ./foo_frac1 atf_check ../cmd/touch -d 2003-06-02T13:37:42.123456789Z ./foo_frac2 - sync + sync ./foo_frac2 atf_check -o 'match:^2003-06-02[T ]13:37:42.123456789 ?(Z|[\+\-]00:?00)$' ./stat_atime ./foo_frac2 atf_check -o 'match:^2003-06-02[T ]13:37:42.123456789 ?(Z|[\+\-]00:?00)$' ./stat_mtime ./foo_frac2