openafs/tests/opr
Simon Wilkinson b28c51d594 opr: Don't confuse isLast and isEnd
opr_queue_IsEnd's implementation was incorrect - it would return
true when the element was the last item in the list, not when it
was the end of the list (equal to the head record)

Correct the implementation of isEnd, and add an implementation for
isLast.

This fixes a bug in RX, wher we would never notice that the last
packet in the transmit queue was acknowledged, because the loop that
iterates over the queue uses isEnd to detect when its work is done.

Change-Id: I8966e05c479c18d025bb5cc4cf77514ce002be95
Reviewed-on: http://gerrit.openafs.org/8493
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
2012-11-23 06:18:31 -08:00
..
.gitignore opr: Add opr_jhash_opaque 2012-08-14 13:48:44 -07:00
dict-t.c opr: Add dictionary implementation 2012-11-01 12:18:01 -07:00
jhash-t.c opr: Add opr_jhash_int2 function 2012-11-01 11:30:20 -07:00
Makefile.in opr: Add dictionary implementation 2012-11-01 12:18:01 -07:00
queues-t.c opr: Don't confuse isLast and isEnd 2012-11-23 06:18:31 -08:00
rbtree-t.c tests: Start using the upstream C TAP harness 2012-05-11 16:36:44 -07:00
time-t.c opr: Add simple time type 2012-06-14 15:23:02 -07:00
uuid-t.c tests/opr: fixes for the uuid-t.c tests 2012-09-06 04:45:59 -07:00