From 02281f4d196fefb99268fc274ec69b86ce3a7fdb Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Sat, 18 Jul 2009 02:42:05 +0000 Subject: [PATCH] improved tests --- src/ca/acctst.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ca/acctst.c b/src/ca/acctst.c index 6d6a8758d..68471cf95 100644 --- a/src/ca/acctst.c +++ b/src/ca/acctst.c @@ -2657,9 +2657,9 @@ void verifyImmediateTearDown ( const char * pName, SEVCHK ( status, "immediate tear down channel get failed" ); status = ca_pend_io ( timeoutToPendIO ); SEVCHK ( status, "immediate tear down channel get failed" ); - if ( currentValue != ( (i + 1) % 8 ) ) { + if ( currentValue != ( (i - 1) % 8 ) ) { printf ( "currentValue = %i, i = %i\n", currentValue, i ); - assert ( currentValue == ( (i + 1) % 2 ) ); + assert ( currentValue == ( (i - 1) % 8 ) ); } } status = ca_put ( DBR_LONG, chan, & value );