OSDN Git Service

selftests: mptcp: connect: skip disconnect tests if not supported
[tomoyo/tomoyo-test1.git] / tools / testing / selftests / net / mptcp / mptcp_connect.sh
index f9c36c6..895114f 100755 (executable)
@@ -797,6 +797,11 @@ run_tests_disconnect()
        local old_cin=$cin
        local old_sin=$sin
 
+       if ! mptcp_lib_kallsyms_has "mptcp_pm_data_reset$"; then
+               echo "INFO: Full disconnect not supported: SKIP"
+               return
+       fi
+
        cat $cin $cin $cin > "$cin".disconnect
 
        # force do_transfer to cope with the multiple tranmissions