Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 858f133d authored by Josh Gao's avatar Josh Gao
Browse files

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
parent 52eb6025
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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<int> sockets;
    std::vector<adb_pollfd> pfds;
    sockets.resize(num_sockets * 2);