From ecaba2dcfb907f4123b33ee1bcc161527853b606 Mon Sep 17 00:00:00 2001 From: Matej Sekoranja Date: Wed, 18 Feb 2015 12:49:26 +0100 Subject: [PATCH] testCodec test fixed --- testApp/remote/testCodec.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/testApp/remote/testCodec.cpp b/testApp/remote/testCodec.cpp index e8c12be..250f27d 100644 --- a/testApp/remote/testCodec.cpp +++ b/testApp/remote/testCodec.cpp @@ -3098,8 +3098,10 @@ namespace epics { testOk(codec._invalidDataStreamCount == 0, "%s: codec._invalidDataStreamCount == 0", CURRENT_FUNCTION); - testOk(codec._closedCount == 1, - "%s: codec._closedCount == 1", CURRENT_FUNCTION); + // _closedCount is not incremented since CCE exception is being thrown manually + // w/o calling close() + testOk(codec._closedCount == 0 /*1*/, + "%s: codec._closedCount == 0", CURRENT_FUNCTION); testOk(codec._receivedControlMessages.size() == 0, "%s: codec._receivedControlMessages.size() == 0 ", CURRENT_FUNCTION);