From: Darrick J. Wong Date: Thu, 23 Apr 2020 23:31:30 +0000 (-0700) Subject: generic/570: don't run this test on systems supporting userspace hibernate X-Git-Tag: v2022.05.01~804 X-Git-Url: http://git.apps.os.sepia.ceph.com/?p=xfstests-dev.git;a=commitdiff_plain;h=dff50e608494e4c44d6f27ef247cb755b2187a02 generic/570: don't run this test on systems supporting userspace hibernate It turns out that userspace actually does need the ability to write to an active swapfile if userspace hibernation (uswsusp) is enabled. Therefore, this test doesn't apply under those conditions. Signed-off-by: Darrick J. Wong Reviewed-by: Christoph Hellwig Signed-off-by: Eryu Guan --- diff --git a/tests/generic/570 b/tests/generic/570 index d574f4b7..e5da2381 100755 --- a/tests/generic/570 +++ b/tests/generic/570 @@ -32,6 +32,7 @@ _supported_fs generic _require_test_program swapon _require_scratch_nocheck _require_block_device $SCRATCH_DEV +test -e /dev/snapshot && _notrun "userspace hibernation to swap is enabled" rm -f $seqres.full