From ccd2eb30bd8b723cc688184aa184defd6f581134 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Mon, 10 Sep 2001 21:55:21 +0000 Subject: [PATCH] wait for connection count to return to normal --- src/ca/acctst.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/ca/acctst.c b/src/ca/acctst.c index d18eb45ae..5f00b9eb3 100644 --- a/src/ca/acctst.c +++ b/src/ca/acctst.c @@ -50,19 +50,19 @@ unsigned getCallbackCount; void showProgressBegin () { printf ( "{" ); - fflush (stdout ); + fflush ( stdout ); } void showProgressEnd () { printf ( "}" ); - fflush (stdout ); + fflush ( stdout ); } void showProgress () { printf ( "." ); - fflush (stdout ); + fflush ( stdout ); } void nUpdatesTester ( struct event_handler_args args ) @@ -468,7 +468,14 @@ void verifyBlockingConnect ( appChan *pChans, unsigned chanCount, unsigned repet showProgressBegin (); - assert ( backgroundConnCount == 1u || backgroundConnCount == 0u ); + i = 0; + while ( backgroundConnCount > 1u ) { + backgroundConnCount = ca_get_ioc_connection_count (); + assert ( i++ < 10 ); + printf ( "Z" ); + fflush ( stdout ); + epicsThreadSleep ( 1.0 ); + } for ( i = 0; i < repetitionCount; i++ ) {