diff options
author | Suzuki K Poulose <suzuki.poulose@arm.com> | 2022-11-25 15:42:01 +0000 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2022-11-29 17:28:31 -0700 |
commit | 177f504cb70cc034774bf708a6ec3f568e0d02a1 (patch) | |
tree | 5d8827dc3c9cd3516586c1eb8ab91b6cbf020f12 /tools/testing/selftests/splice | |
parent | b868a02e37255481c7e0a40d063d1c2240b7304b (diff) | |
download | linux-stable-177f504cb70cc034774bf708a6ec3f568e0d02a1.tar.gz linux-stable-177f504cb70cc034774bf708a6ec3f568e0d02a1.tar.bz2 linux-stable-177f504cb70cc034774bf708a6ec3f568e0d02a1.zip |
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>
Diffstat (limited to 'tools/testing/selftests/splice')
-rwxr-xr-x | tools/testing/selftests/splice/short_splice_read.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/splice/short_splice_read.sh b/tools/testing/selftests/splice/short_splice_read.sh index 22b6c8910b18..4710e09f49fa 100755 --- a/tools/testing/selftests/splice/short_splice_read.sh +++ b/tools/testing/selftests/splice/short_splice_read.sh @@ -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 |