From 68bb6efc0befcf5edf811a1257f59e5c522c2d64 Mon Sep 17 00:00:00 2001 From: Arlin Davis Date: Wed, 20 Aug 2008 18:53:14 -0700 Subject: [PATCH] dapltest: add check for duplicate disconnect events in transaction test Signed-off by: Arlin Davis ardavis@ichips.intel.com --- test/dapltest/test/dapl_transaction_test.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/dapltest/test/dapl_transaction_test.c b/test/dapltest/test/dapl_transaction_test.c index b01baa0..1d5beff 100644 --- a/test/dapltest/test/dapl_transaction_test.c +++ b/test/dapltest/test/dapl_transaction_test.c @@ -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 */ -- 2.46.0