linux/tools/testing/selftests
Vakul Garg f22a4d8cf0 selftests/tls: Fix recv(MSG_PEEK) & splice() test cases
[ Upstream commit 0ed3015c99 ]

TLS test cases splice_from_pipe, send_and_splice &
recv_peek_multiple_records expect to receive a given nummber of bytes
and then compare them against the number of bytes which were sent.
Therefore, system call recv() must not return before receiving the
requested number of bytes, otherwise the subsequent memcmp() fails.
This patch passes MSG_WAITALL flag to recv() so that it does not return
prematurely before requested number of bytes are copied to receive
buffer.

Signed-off-by: Vakul Garg <vakul.garg@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-11-24 08:19:37 +01:00
..
android
bpf selftests/bpf: fix "bind{4, 6} deny specific IP & port" on s390 2019-09-21 07:16:52 +02:00
breakpoints
capabilities
cgroup cgroup: kselftest: relax fs_spec checks 2019-08-06 19:06:55 +02:00
cpu-hotplug
cpufreq
drivers
efivarfs
exec
filesystems
firmware
ftrace
futex
gpio
ia64
intel_pstate
ipc
kcmp
kmod
kvm selftests/kvm: make platform_info_test pass on AMD 2019-09-10 10:33:51 +01:00
lib
locking
media_tests
membarrier
memfd
memory-hotplug
mount
mqueue
net selftests/tls: Fix recv(MSG_PEEK) & splice() test cases 2019-11-24 08:19:37 +01:00
netfilter selftests: netfilter: missing error check when setting up veth interface 2019-06-22 08:15:15 +02:00
networking/timestamping
nsfs
ntb
powerpc selftests/powerpc: Do not fail with reschedule 2019-11-20 18:46:58 +01:00
prctl
proc
pstore
ptp
ptrace
rcutorture
rseq
rtc
seccomp
sigaltstack
size
sparc64
splice
static_keys
sync
sysctl
tc-testing
timers selftests/timers: Add missing fflush(stdout) calls 2019-06-19 08:18:04 +02:00
uevent
user
vDSO
vm selftests: vm: install test_vmalloc.sh for run_vmtests 2019-06-25 11:35:56 +08:00
watchdog
x86
zram
.gitignore
gen_kselftest_tar.sh
kselftest_harness.h
kselftest_install.sh
kselftest.h
lib.mk
Makefile