syscalls/swapoff/swapoff01: remove the check for BTRFS
PATCH 1/1 syscalls/swapoff/swapoff01: remove the check for BTRFS
From: QI Fuli <[email protected]>
remove the redundant task as BTRFS is checked in is_swap_supported()
Fixes eadffb391("syscalls/swapoff/swapoff0{1,2}: use helpers to check
support status")
Signed-off-by QI Fuli <[email protected]>
--- testcases/kernel/syscalls/swapoff/swapoff01.c | 7 ------- 1 file changed, 7 deletions(-)
testcases/kernel/syscalls/swapoff/swapoff01.c +0 -7
@@ -34,8 +34,6 @@ static void verify_swapoff(void);char *TCID ="swapoff01" ;int TST_TOTAL =1 ; -static long fs_type; -int main (int ac,char **av) {int lc;
@@ -56,11 +54,6 @@ int main(int ac, char **av)static void verify_swapoff (void ) {if (ltp_syscall (__NR_swapon,"./swapfile01" ,0 ) !=0 ) { -if (fs_type ==TST_BTRFS_MAGIC && errno ==EINVAL ) { -tst_brkm (TCONF , cleanup, -"Swapfiles on BTRFS are not implemented" ); - } -tst_resm (TBROK ,"Failed to turn on the swap file" ", skipping test iteration" );return ;
--
2.29.2
PATCH 1/1 syscalls/swapoff/swapoff01: remove the check for BTRFS
Quoted 6 lines · QI Fuli
From: QI Fuli <[email protected]>
remove the redundant task as BTRFS is checked in
is_swap_supported()Fixes eadffb391("syscalls/swapoff/swapoff0{1,2}: use helpers to checksupport status")
Thanks for the cleanup, pushed.
Signature · 5 lines
Regards, Li Wang -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.linux.it/pipermail/ltp/attachments/20210322/f5a83514/attachment.htm>