Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
selftests: mptcp: join: fix mptcp_subflow_send_ack lookup
mpc backup tests will skip unexpected sometimes, since static function like mptcp_subflow_send_ack may also be listed in /proc/kallsyms, with a 't' in front of it, not 'T' ('T' is for a global function): > grep "mptcp_subflow_send_ack" /proc/kallsyms 0000000000000000 T __pfx___mptcp_subflow_send_ack 0000000000000000 T __mptcp_subflow_send_ack 0000000000000000 t __pfx_mptcp_subflow_send_ack 0000000000000000 t mptcp_subflow_send_ack In this case, mptcp_lib_kallsyms_doesnt_have "mptcp_subflow_send_ack$" will be flase, mpc backup tests will skip. This is not what we expected. The correct logic here should be: if mptcp_subflow_send_ack is not a global function in kallsyms, do these mpc backup tests. So a 'T' must be added in front of mptcp_subflow_send_ack. Fixes: 632978f ("selftests: mptcp: join: skip MPC backups tests if not supported") Signed-off-by: Geliang Tang <[email protected]>
- Loading branch information