summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-prod (mdb) <android-build-team-robot@google.com>2019-05-21 23:21:56 +0000
committerandroid-build-prod (mdb) <android-build-team-robot@google.com>2019-05-21 23:21:56 +0000
commita5d7f06c7e19e25f7efedb840620d51cfb1572e6 (patch)
treee411de77731dc5120471a7f9bd3ea4ce61110a93
parent083169a2757cf26af892ee43e355076f97892f5d (diff)
parent9ed8873880e6466029920366c7984960d29ce453 (diff)
downloadtests-a5d7f06c7e19e25f7efedb840620d51cfb1572e6.tar.gz
Snap for 5590969 from 9ed8873880e6466029920366c7984960d29ce453 to sdk-releaseplatform-tools-29.0.1
Change-Id: Ic10b4980af880533aa1f20e95ca429c45a9a70fd
-rwxr-xr-xnet/test/leak_test.py2
-rwxr-xr-xnet/test/run_net_test.sh3
-rwxr-xr-xnet/test/tcp_repair_test.py5
3 files changed, 6 insertions, 4 deletions
diff --git a/net/test/leak_test.py b/net/test/leak_test.py
index 8ef4b41..4659046 100755
--- a/net/test/leak_test.py
+++ b/net/test/leak_test.py
@@ -76,7 +76,7 @@ class ForceSocketBufferOptionTest(net_test.NetworkTest):
def testRcvBufForce(self):
self.CheckForceSocketBufferOption(SO_RCVBUF, self.SO_RCVBUFFORCE)
- def testRcvBufForce(self):
+ def testSndBufForce(self):
self.CheckForceSocketBufferOption(SO_SNDBUF, self.SO_SNDBUFFORCE)
diff --git a/net/test/run_net_test.sh b/net/test/run_net_test.sh
index deed5cd..da9d243 100755
--- a/net/test/run_net_test.sh
+++ b/net/test/run_net_test.sh
@@ -13,6 +13,7 @@ EOF
# Common kernel options
OPTIONS=" DEBUG_SPINLOCK DEBUG_ATOMIC_SLEEP DEBUG_MUTEXES DEBUG_RT_MUTEXES"
+OPTIONS="$OPTIONS WARN_ALL_UNSEEDED_RANDOM"
OPTIONS="$OPTIONS DEVTMPFS DEVTMPFS_MOUNT FHANDLE"
OPTIONS="$OPTIONS IPV6 IPV6_ROUTER_PREF IPV6_MULTIPLE_TABLES IPV6_ROUTE_INFO"
OPTIONS="$OPTIONS TUN SYN_COOKIES IP_ADVANCED_ROUTER IP_MULTIPLE_TABLES"
@@ -57,7 +58,7 @@ OPTIONS="$OPTIONS NETFILTER_TPROXY" # Removed in 3.11
OPTIONS="$OPTIONS BLK_DEV_UBD HOSTFS"
# QEMU specific options
-OPTIONS="$OPTIONS VIRTIO VIRTIO_PCI VIRTIO_BLK NET_9P NET_9P_VIRTIO 9P_FS"
+OPTIONS="$OPTIONS PCI VIRTIO VIRTIO_PCI VIRTIO_BLK NET_9P NET_9P_VIRTIO 9P_FS"
OPTIONS="$OPTIONS SERIAL_8250 SERIAL_8250_PCI"
# Obsolete options present at some time in Android kernels
diff --git a/net/test/tcp_repair_test.py b/net/test/tcp_repair_test.py
index af67def..ce54aba 100755
--- a/net/test/tcp_repair_test.py
+++ b/net/test/tcp_repair_test.py
@@ -73,8 +73,9 @@ class TcpRepairTest(multinetwork_base.MultiNetworkBaseTest):
net_test.DisableFinWait(s)
self.SelectInterface(s, netid, "mark")
- remoteaddr = self.GetRemoteSocketAddress(version)
- self.assertRaisesErrno(EINPROGRESS, s.connect, (remoteaddr, TEST_PORT))
+ remotesockaddr = self.GetRemoteSocketAddress(version)
+ remoteaddr = self.GetRemoteAddress(version)
+ self.assertRaisesErrno(EINPROGRESS, s.connect, (remotesockaddr, TEST_PORT))
self.assertSocketNotConnected(s)
myaddr = self.MyAddress(version, netid)