testCodec test fixed

This commit is contained in:
Matej Sekoranja
2015-02-18 12:49:26 +01:00
parent c8c0498cdf
commit ecaba2dcfb

View File

@@ -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);