Disable testCreateServerSocketWithPortNoBacklog on emulators.
The socket backlog argument is treated differently in the emulator
kernel than on actual device kernels, which causes this test to fail
when run on emulators.
Bug: 78521218
Bug: 73535217
Bug: 31960002
Test: cts -m CtsLibcoreTestCases -t libcore.javax.net
Change-Id: I9ed321125efc163fd4cacfd2960bb52371b1f1fa
diff --git a/expectations/virtualdeviceknownfailures.txt b/expectations/virtualdeviceknownfailures.txt
index 300bfde..66b67e4 100644
--- a/expectations/virtualdeviceknownfailures.txt
+++ b/expectations/virtualdeviceknownfailures.txt
@@ -22,5 +22,13 @@
"org.apache.harmony.tests.java.net.MulticastSocketTest#test_setLoopbackModeSendReceive_IPv4"
],
bug: 35922755
+},
+{
+ description: "Kernels between 4.4 and 4.9 interpret the backlog parameter differently than we
+ expect, causing this test to fail, and our emulators currently use those kernel
+ versions. See b/31960002 for a full discussion and references to the upstream
+ changes.",
+ name: "libcore.javax.net.ServerSocketFactoryTest#testCreateServerSocketWithPortNoBacklog",
+ bug: 73535217
}
]