Lines Matching defs:one
129 JournalFile *one, *two;
130 one = test_open("one.journal");
132 append_number(one, 1, NULL);
133 append_number(one, 2, NULL);
136 test_close(one);
141 JournalFile *one, *two;
142 one = test_open("one.journal");
144 append_number(one, 1, NULL);
146 append_number(one, 3, NULL);
148 test_close(one);
212 JournalFile *one, *two;
219 assert_se(journal_file_open("one.journal", O_RDWR|O_CREAT, 0644,
220 true, false, NULL, NULL, NULL, &one) == 0);
222 append_number(one, 1, &seqnum);
225 append_number(one, 2, &seqnum);
229 assert_se(one->header->state == STATE_ONLINE);
230 assert_se(!sd_id128_equal(one->header->file_id, one->header->machine_id));
231 assert_se(!sd_id128_equal(one->header->file_id, one->header->boot_id));
232 assert_se(sd_id128_equal(one->header->file_id, one->header->seqnum_id));
234 memcpy(&seqnum_id, &one->header->seqnum_id, sizeof(sd_id128_t));
237 true, false, NULL, NULL, one, &two) == 0);
240 assert_se(!sd_id128_equal(two->header->file_id, one->header->file_id));
241 assert_se(sd_id128_equal(one->header->machine_id, one->header->machine_id));
242 assert_se(sd_id128_equal(one->header->boot_id, one->header->boot_id));
243 assert_se(sd_id128_equal(one->header->seqnum_id, one->header->seqnum_id));
254 append_number(one, 5, &seqnum);
258 append_number(one, 6, &seqnum);
262 test_close(one);