]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: (fallocate) use long options to improve test coverage report
authorChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Thu, 22 Jan 2026 02:34:37 +0000 (21:34 -0500)
committerChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Thu, 29 Jan 2026 13:08:49 +0000 (08:08 -0500)
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
tests/ts/misc/fallocate

index fbab4c0780396df58fb2ed38b9882374c86e7197..ecebc158a859b59d444e510f6ecccd004d1bbffc 100755 (executable)
@@ -29,7 +29,7 @@ IMAGE=${TS_OUTDIR}/${TS_TESTNAME}.file
 ts_init_subtest "alloc"
 rm -f $IMAGE
 
-if $TS_CMD_FALLOCATE -o 128 -l 256 $IMAGE >> $TS_OUTPUT 2>> $TS_ERRLOG; then
+if $TS_CMD_FALLOCATE --offset 128 --length 256 $IMAGE >> $TS_OUTPUT 2>> $TS_ERRLOG; then
        stat -c "%s" $IMAGE >> $TS_OUTPUT 2>> $TS_ERRLOG
 else
        # fs type of $TS_OUTDIR, could be used to skip this test early
@@ -63,7 +63,7 @@ ts_finalize_subtest
 # Dig holes with verbose
 #
 ts_init_subtest "dig-holes"
-$TS_CMD_FALLOCATE --dig-holes -v $IMAGE 2>> $TS_ERRLOG | sed "s|$IMAGE|<testfile>|g" >> $TS_OUTPUT
+$TS_CMD_FALLOCATE --dig-holes --verbose $IMAGE 2>> $TS_ERRLOG | sed "s|$IMAGE|<testfile>|g" >> $TS_OUTPUT
 ts_finalize_subtest
 
 #