OSDN Git Service

DO NOT MERGE Fix getaddrinfo test to use random mapping ids
authorRobin Lee <rgl@google.com>
Thu, 15 Sep 2016 01:55:25 +0000 (10:55 +0900)
committerMichal Karpinski <mkarpinski@google.com>
Fri, 2 Dec 2016 13:40:07 +0000 (13:40 +0000)
commit137088fbf8c359f61e7721f8c4246aea04995d97
treeba1987ea01951528a445ceda6fe157828d48d0d0
parent1b82ad799145b0806636e52ab563f1a3917c19fc
DO NOT MERGE Fix getaddrinfo test to use random mapping ids

This seems to have been intended but it's just using the loop index. In
fact the only thing the random index is used for is an assert to check
that it is a valid index.

Also stops the test segfaulting if num_queries > num_hosts

(cherry picked from commit c4aba0ab2e9539a5e185e3800d47b3fcda9af779)

Change-Id: Iae2369676c08fa8f8110c3cdebb0e4294a60b4b2
tests/netd_test.cpp