xfs/117: fix fragility in this fuzz test
authorDarrick J. Wong <djwong@kernel.org>
Wed, 19 May 2021 23:56:58 +0000 (16:56 -0700)
committerEryu Guan <guaneryu@gmail.com>
Sun, 23 May 2021 13:31:21 +0000 (21:31 +0800)
commitb77d5dab83798fd80ca2fe93df39d23a09e67eda
treef642376d42487d83864282190b880cab663e4679
parentea15099b714c7c10eb3c60aefecd9bf3e841da46
xfs/117: fix fragility in this fuzz test

This fuzz test has some fragility problems -- it doesn't do anything to
guarantee that the inodes that it checks for EFSCORRUPTED are the same
ones that it fuzzed, and it doesn't explicitly try to avoid victimizing
inodes in the same chunk as the root directory.  As a result, this test
fails annoyingly frequently.

Fix both of these problems and get rid of the confusingly named TESTDIR
variable.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/xfs/117