From 0118f0329c1df2853a55291bb0a936085779d468 Mon Sep 17 00:00:00 2001 From: "sj.cha" Date: Mon, 29 Aug 2016 16:21:54 +0900 Subject: [PATCH] Add some failure comments in VpnTest Symptom : Sockets are not instantly destroyed during VpnTest. Root Cause : If CONFIG_INET_DIAG_DESTROY kernel config is not set in Android N, when network interface going to down, sockets are not instantly destroyed. Solution : Enable CONFIG_INET_DIAG_DESTROY kernel feature. But developer cannot check all of configurations on kernel, so adding some comments in VpnTest. Signed-off-by: SangJin Cha Change-Id: Ib97b93dfbfb62fe61bd3688ea7545708ec3ea2a2 --- .../app/src/com/android/cts/net/hostside/VpnTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/cts/hostside/app/src/com/android/cts/net/hostside/VpnTest.java b/tests/cts/hostside/app/src/com/android/cts/net/hostside/VpnTest.java index 12fe625370..a8ad2b868e 100755 --- a/tests/cts/hostside/app/src/com/android/cts/net/hostside/VpnTest.java +++ b/tests/cts/hostside/app/src/com/android/cts/net/hostside/VpnTest.java @@ -84,6 +84,11 @@ import java.util.Random; * https://android-review.googlesource.com/#/c/99225/ * https://android-review.googlesource.com/#/c/100557/ * + * To ensure that the kernel has the required commits, run the kernel unit + * tests described at: + * + * https://source.android.com/devices/tech/config/kernel_network_tests.html + * */ public class VpnTest extends InstrumentationTestCase {