Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests: splice_read: Fix sysfs read cases

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>

authored by

Suzuki K Poulose and committed by
Shuah Khan
177f504c b868a02e

+2 -2
+2 -2
tools/testing/selftests/splice/short_splice_read.sh
··· 127 127 if ! [ -d /sys/module/test_module/sections ] ; then 128 128 expect_success "test_module kernel module load" modprobe test_module 129 129 fi 130 - expect_failure "kernfs attr splice" test_splice /sys/module/test_module/coresize 131 - expect_failure "kernfs binattr splice" test_splice /sys/module/test_module/sections/.init.text 130 + expect_success "kernfs attr splice" test_splice /sys/module/test_module/coresize 131 + expect_success "kernfs binattr splice" test_splice /sys/module/test_module/sections/.init.text 132 132 133 133 exit $ret