Commit c3523a6b authored by Jan Kadlec's avatar Jan Kadlec

unittest: test journal is not created when file size is too low

parent 7a001ea3
......@@ -299,8 +299,12 @@ int main(int argc, char *argv[])
/* Try to open journal with too small fsize. */
journal_t *journal = journal_open(jfilename, 1024);
ok(journal == NULL, "journal: open too small");
/* Open/create new journal. */
journal_t *journal = journal_open(jfilename, fsize);
journal = journal_open(jfilename, fsize);
ok(journal != NULL, "journal: open journal '%s'", jfilename);
if (journal == NULL) {
goto skip_all;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment