From 858f133d41f3e573455c59e71a4c9867b265c558 Mon Sep 17 00:00:00 2001 From: Josh Gao Date: Tue, 26 Apr 2016 15:45:05 -0700 Subject: [PATCH] adb: decrease the number of fds used in fd_count test. Default limit is 1024 fds, which means 512 socketpairs will hit the limit. Bug: http://b/28386497 Change-Id: Ib36404c050e4be3db51378e250f300f7ec5aab13 --- adb/sysdeps_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adb/sysdeps_test.cpp b/adb/sysdeps_test.cpp index f0c334ef2..fde344abf 100644 --- a/adb/sysdeps_test.cpp +++ b/adb/sysdeps_test.cpp @@ -218,7 +218,7 @@ TEST_F(sysdeps_poll, disconnect) { TEST_F(sysdeps_poll, fd_count) { // https://code.google.com/p/android/issues/detail?id=12141 - static constexpr int num_sockets = 512; + static constexpr int num_sockets = 256; std::vector sockets; std::vector pfds; sockets.resize(num_sockets * 2);