]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
generic/{175,297,298}: fix use of uninitialized var
authorAmir Goldstein <amir73il@gmail.com>
Tue, 15 Aug 2023 08:28:35 +0000 (11:28 +0300)
committerZorro Lang <zlang@kernel.org>
Fri, 18 Aug 2023 18:48:06 +0000 (02:48 +0800)
commit9caf3ee07d0d0071e70f5bde28e6cd32bbc0e266
treebe6370bd2ff553866eabe10016718131112319a7
parent6d63f23987a629b4f7dd6e57e5b67ba37a3b742e
generic/{175,297,298}: fix use of uninitialized var

The truncate command in those tests use an uninitialized variable i.
in kdevops, i must contain some leftover, so we get errors like:
/data/fstests-install/xfstests/tests/generic/298: line 45: /dev/loop12):
           syntax error: operand expected (error token is "/dev/loop12)")

Apparently, noone including the author of the tests knows why this
truncate command is in the test, so remove the wrong truncate command.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/generic/175
tests/generic/297
tests/generic/298