linux/tools/testing/selftests/net/mptcp
Matthieu Baerts bfd862a7e9 selftests: mptcp: clean tmp files in simult_flows
'$cin' and '$sin' variables are local to a function: they are then not
available from the cleanup trap.

Instead, we need to use '$large' and '$small' that are not local and
defined just before setting the trap.

Without this patch, running this script in a loop might cause a:

  write: No space left on device

issue.

Fixes: 1a418cb8e8 ("mptcp: simult flow self-tests")
Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2021-09-01 10:55:49 -07:00
..
.gitignore SPDX patches for 5.7-rc1. 2020-04-03 13:12:26 -07:00
config selftests: mptcp: add ADD_ADDR timeout test case 2020-11-04 17:45:53 -08:00
diag.sh selftests: mptcp: launch mptcp_connect with timeout 2021-04-02 14:21:50 -07:00
Makefile selftests: mptcp: add packet mark test case 2021-04-16 15:23:10 -07:00
mptcp_connect.c selftests: mptcp_connect: add SO_TIMESTAMPNS cmsg support 2021-06-04 14:08:09 -07:00
mptcp_connect.sh selftests: mptcp: display proper reason to abort tests 2021-06-22 09:57:45 -07:00
mptcp_join.sh selftests: mptcp: add MP_FAIL mibs check 2021-08-25 11:02:35 +01:00
mptcp_sockopt.sh selftests: mptcp_connect: add SO_TIMESTAMPNS cmsg support 2021-06-04 14:08:09 -07:00
pm_netlink.sh selftests: mptcp: avoid calling pm_nl_ctl with bad IDs 2021-03-30 17:42:23 -07:00
pm_nl_ctl.c selftests: mptcp: set and print the fullmesh flag 2021-08-18 10:10:01 +01:00
settings selftests: increase timeout to 10 min 2021-01-27 16:53:55 -08:00
simult_flows.sh selftests: mptcp: clean tmp files in simult_flows 2021-09-01 10:55:49 -07:00