Fix a copy paste error of using the boolean ret as a notmuch_status_t,
and uninitialized.
test_begin_subtest "upgrade a closed db"
cat c_head - c_tail <<'EOF' | test_C ${MAIL_DIR}
{
test_begin_subtest "upgrade a closed db"
cat c_head - c_tail <<'EOF' | test_C ${MAIL_DIR}
{
EXPECT0(notmuch_database_close (db));
stat = notmuch_database_upgrade (db, NULL, NULL);
EXPECT0(notmuch_database_close (db));
stat = notmuch_database_upgrade (db, NULL, NULL);
- printf ("%d\n", ret == NOTMUCH_STATUS_SUCCESS);
+ printf ("%d\n", stat == NOTMUCH_STATUS_SUCCESS);
}
EOF
cat <<EOF > EXPECTED
}
EOF
cat <<EOF > EXPECTED