dovecot-2.0: mail-index-transaction-update unit test fix.

dovecot at dovecot.org dovecot at dovecot.org
Mon Dec 14 05:13:51 EET 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/240739b27688
changeset: 10477:240739b27688
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Dec 13 21:58:36 2009 -0500
description:
mail-index-transaction-update unit test fix.

diffstat:

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

diffs (24 lines):

diff -r 1c2e553809b2 -r 240739b27688 src/lib-index/test-mail-index-transaction-update.c
--- a/src/lib-index/test-mail-index-transaction-update.c	Sun Dec 13 21:52:38 2009 -0500
+++ b/src/lib-index/test-mail-index-transaction-update.c	Sun Dec 13 21:58:36 2009 -0500
@@ -500,7 +500,10 @@ static void test_mail_index_modseq_updat
 	mail_index_update_modseq(t, 4, 0x8234fefa02747429ULL);
 	mail_index_update_modseq(t, 6, 0x1234567890abcdefULL);
 	mail_index_update_modseq(t, 2, 0xfeed);
-	mail_index_update_modseq(t, 4, 1);
+	mail_index_update_modseq(t, 4, 2);
+	/* modseq=1 updates are ignored: */
+	mail_index_update_modseq(t, 5, 1);
+	mail_index_update_modseq(t, 6, 1);
 
 	ups = array_get(&t->modseq_updates, &count);
 	test_assert(count == 4);
@@ -515,7 +518,7 @@ static void test_mail_index_modseq_updat
 		    ups[2].modseq_low32 == 0xfeed);
 	test_assert(ups[3].uid == 4 &&
 		    ups[3].modseq_high32 == 0 &&
-		    ups[3].modseq_low32 == 1);
+		    ups[3].modseq_low32 == 2);
 	test_end();
 }
 


More information about the dovecot-cvs mailing list