{TESTS] bugfix:MadQuery test always use pkey/gid index 0.
authorsleybo <sleybo@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 11 Sep 2006 07:00:00 +0000 (07:00 +0000)
committersleybo <sleybo@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 11 Sep 2006 07:00:00 +0000 (07:00 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@486 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

tests/alts/ibquery.c

index 396186e..4e40b27 100644 (file)
@@ -175,8 +175,8 @@ al_test_query(void)
                        if (p_port_attr->link_state == IB_LINK_ACTIVE)\r
                        {\r
                                query_portguid = p_port_attr->port_guid;\r
-                               port_gid = p_port_attr->p_gid_table[i];\r
-                               pkey = p_port_attr->p_pkey_table[i];\r
+                               port_gid = p_port_attr->p_gid_table[0];\r
+                               pkey = p_port_attr->p_pkey_table[0];\r
                                break;\r
                        }\r
                }\r