]> git.openfabrics.org - ~ardavis/dapl.git/commitdiff
dapltest: add check for duplicate disconnect events in transaction test
authorArlin Davis <arlin.r.davis@intel.com>
Thu, 21 Aug 2008 01:53:14 +0000 (18:53 -0700)
committerArlin Davis <arlin.r.davis@intel.com>
Thu, 21 Aug 2008 01:53:14 +0000 (18:53 -0700)
Signed-off by: Arlin Davis ardavis@ichips.intel.com

test/dapltest/test/dapl_transaction_test.c

index b01baa0312b093dfa0b616554eeb54a9cc27c449..1d5beffd66d3798beb1b831e3d8885e7d884a2b8 100644 (file)
@@ -1199,8 +1199,21 @@ test_failure:
                        if ( test_ptr->ep_context[j].ep_handle == ep_handle )
                        {
                            test_ptr->ep_context[j].ep_handle = NULL;
+                           break;
                        }
                    }
+                    if (j == test_ptr->cmd->eps_per_thread)
+                    {
+                        /* invalid ep_handle returned */
+                        DT_Tdep_PT_Printf(phead,
+                                          "Test[" F64x "]: disconnect"
+                                          " event with unknown EP=%p "
+                                          " possible duplicate\n",
+                                          test_ptr->base_port,
+                                          ep_handle);
+                        ep_handle = NULL;
+                    }
+
                }
            }
            else /* !success - QP may be in error state */