dovecot-2.2: lib-index: Unit test fix.

dovecot at dovecot.org dovecot at dovecot.org
Sun May 24 20:16:11 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/2de3c7248922
changeset: 18746:2de3c7248922
user:      Timo Sirainen <tss at iki.fi>
date:      Sun May 24 16:13:57 2015 -0400
description:
lib-index: Unit test fix.

diffstat:

 src/lib-index/test-mail-index-transaction-update.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r c792d026d3fa -r 2de3c7248922 src/lib-index/test-mail-index-transaction-update.c
--- a/src/lib-index/test-mail-index-transaction-update.c	Sun May 24 13:40:46 2015 -0400
+++ b/src/lib-index/test-mail-index-transaction-update.c	Sun May 24 16:13:57 2015 -0400
@@ -466,7 +466,7 @@
 	count = array_count(&t->updates);
 	for (i = 0; i < idx; i++) {
 		for (j = idx + 1; j <= count; j++) {
-			if (!mail_index_transaction_get_flag_update_pos(t, i, j, seq) == idx) {
+			if (mail_index_transaction_get_flag_update_pos(t, i, j, seq) != idx) {
 				test_assert(FALSE);
 				return FALSE;
 			}


More information about the dovecot-cvs mailing list