]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: (flock) fix shellcheck warning
authorChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Thu, 29 Jan 2026 12:57:52 +0000 (07:57 -0500)
committerChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Thu, 29 Jan 2026 12:57:52 +0000 (07:57 -0500)
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
tests/ts/flock/flock

index 70fc69cf5606649b0caef395e6895d5176097b86..85e341d6c8fc51355713850787155394bbf9df6a 100755 (executable)
@@ -91,7 +91,7 @@ for api in flock fcntl ; do
 
 
        ts_init_subtest "${subtest_prefix}fd"
-       cd "$TS_OUTDIR"
+       cd "$TS_OUTDIR" || ts_failed "failed to change directory to $TS_OUTDIR"
        rm 4 2> /dev/null
        exec 4<>$TS_OUTDIR/lockfile || ts_log "Could not open lockfile"
        $TS_CMD_FLOCK $api_arg --nonblock --exclusive --conflict-exit-code 123 4 \