From dff50e608494e4c44d6f27ef247cb755b2187a02 Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Thu, 23 Apr 2020 16:31:30 -0700 Subject: [PATCH] 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 --- tests/generic/570 | 1 + 1 file changed, 1 insertion(+) 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