Lines Matching defs:next_offset
301 #define MODSEQ_MATCH(modseq, next_offset) \
302 ((next_offset) == modseq_next_offset[modseq] || \
303 (next_offset) == modseq_alt_next_offset[modseq])
307 uoff_t next_offset;
309 test_assert(mail_transaction_log_file_get_modseq_next_offset(file, 1, &next_offset) == 0);
310 test_assert(next_offset == modseq_next_offset[1]);
313 test_assert(mail_transaction_log_file_get_modseq_next_offset(file, max_modseq, &next_offset) == 0);
314 test_assert(next_offset == file->sync_offset);
315 test_assert(next_offset != modseq_next_offset[max_modseq]);
319 test_assert(mail_transaction_log_file_get_modseq_next_offset(file, 2, &next_offset) == 0);
320 test_assert(MODSEQ_MATCH(2, next_offset));
322 test_assert(mail_transaction_log_file_get_modseq_next_offset(file, 2, &next_offset) == 0);
323 test_assert(MODSEQ_MATCH(2, next_offset));
325 test_assert(mail_transaction_log_file_get_modseq_next_offset(file, 3, &next_offset) == 0);
326 test_assert(MODSEQ_MATCH(3, next_offset));
328 test_assert(mail_transaction_log_file_get_modseq_next_offset(file, 2, &next_offset) == 0);
329 test_assert(MODSEQ_MATCH(2, next_offset));
333 test_assert(mail_transaction_log_file_get_modseq_next_offset(file, modseq, &next_offset) == 0);
334 test_assert(MODSEQ_MATCH(modseq, next_offset));
339 test_assert(mail_transaction_log_file_get_modseq_next_offset(file, modseq, &next_offset) == 0);
340 test_assert(MODSEQ_MATCH(modseq, next_offset));
392 uoff_t next_offset;
394 test_assert(mail_transaction_log_file_get_modseq_next_offset(file, 2, &next_offset) == 0);
396 test_assert(next_offset == file->sync_offset);