From 293294cb4828104d95f91f367caac87b4a0ac6b9 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Tue, 19 Dec 1995 19:29:04 +0000 Subject: [PATCH] changed put test --- src/ca/acctst.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/ca/acctst.c b/src/ca/acctst.c index 89d65f667..d01d3a100 100644 --- a/src/ca/acctst.c +++ b/src/ca/acctst.c @@ -7,6 +7,9 @@ static char *sccsId = "@(#) $Id$"; /* * $Log$ + * Revision 1.32 1995/11/29 19:17:25 jhill + * more tests + * * Revision 1.31 1995/10/12 01:30:28 jhill * improved the test * @@ -682,8 +685,14 @@ void null_event(struct event_handler_args args) int status; #if 0 - status = ca_put (DBR_DOUBLE, args.chid, &fval); - SEVCHK (status, NULL); + if (ca_state(args.chid)==cs_conn) { + status = ca_put(DBR_FLOAT, args.chid, &fval); + SEVCHK(status, "put failed in null_event()"); + } + else { + printf("null_event() called for disconnected %s\n", + ca_name(args.chid)); + } #endif if (i++ > 1000) {