test: fix uninitialized variable use in T562-lib-database

Fix a copy paste error of using the boolean ret as a notmuch_status_t,
and uninitialized.
This commit is contained in:
David Bremner 2020-08-16 14:04:36 -03:00
parent a1b1fe85c2
commit fe449f779d

View file

@ -154,11 +154,9 @@ test_expect_equal_file EXPECTED OUTPUT
test_begin_subtest "upgrade a closed db" test_begin_subtest "upgrade a closed db"
cat c_head - c_tail <<'EOF' | test_C ${MAIL_DIR} cat c_head - c_tail <<'EOF' | test_C ${MAIL_DIR}
{ {
notmuch_bool_t ret;
EXPECT0(notmuch_database_close (db)); EXPECT0(notmuch_database_close (db));
stat = notmuch_database_upgrade (db, NULL, NULL); stat = notmuch_database_upgrade (db, NULL, NULL);
printf ("%d\n", ret == NOTMUCH_STATUS_SUCCESS); printf ("%d\n", stat == NOTMUCH_STATUS_SUCCESS);
} }
EOF EOF
cat <<EOF > EXPECTED cat <<EOF > EXPECTED