selftests: splice_read: Fix sysfs read cases
authorSuzuki K Poulose <suzuki.poulose@arm.com>
Fri, 25 Nov 2022 15:42:01 +0000 (15:42 +0000)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 30 Nov 2022 00:28:31 +0000 (17:28 -0700)
sysfs now supports splice_* operations with

 commit f2d6c2708bd84 ("kernfs: wire up ->splice_read and ->splice_write")

Update the selftests to expect success instead of failure.

Cc: Shuah Khan <shuah@kernel.org>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Siddharth Gupta <sidgup@codeaurora.org
Reported-by: Dilip Kota <dilip.kota@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/splice/short_splice_read.sh

index 22b6c89..4710e09 100755 (executable)
@@ -127,7 +127,7 @@ expect_success "proc_handler: special read splice" test_splice /proc/sys/kernel/
 if ! [ -d /sys/module/test_module/sections ] ; then
        expect_success "test_module kernel module load" modprobe test_module
 fi
-expect_failure "kernfs attr splice" test_splice /sys/module/test_module/coresize
-expect_failure "kernfs binattr splice" test_splice /sys/module/test_module/sections/.init.text
+expect_success "kernfs attr splice" test_splice /sys/module/test_module/coresize
+expect_success "kernfs binattr splice" test_splice /sys/module/test_module/sections/.init.text
 
 exit $ret