From: David Bremner Date: Sat, 1 Aug 2020 12:25:59 +0000 (-0300) Subject: lib: fix return value for n_directory_delete X-Git-Tag: 0.31_rc0~53 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=f4f5db0f1a6e89f56bfd73f8517c1cac7af20290 lib: fix return value for n_directory_delete Falling out of the catch meant the error return was lost --- diff --git a/lib/directory.cc b/lib/directory.cc index 79ceea31..eee8254e 100644 --- a/lib/directory.cc +++ b/lib/directory.cc @@ -323,7 +323,7 @@ notmuch_directory_delete (notmuch_directory_t *directory) } notmuch_directory_destroy (directory); - return NOTMUCH_STATUS_SUCCESS; + return status; } void diff --git a/test/T563-lib-directory.sh b/test/T563-lib-directory.sh index b91a1c87..7e44e805 100755 --- a/test/T563-lib-directory.sh +++ b/test/T563-lib-directory.sh @@ -76,7 +76,6 @@ test_expect_equal_file EXPECTED OUTPUT backup_database test_begin_subtest "delete directory document for a closed db" -test_subtest_known_broken cat c_head - c_tail <<'EOF' | test_C ${MAIL_DIR} { stat = notmuch_directory_delete (dir);