X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2FT050-new.sh;h=2035d29f529aa8c93922d5f98827fc12c5fd6cec;hb=c5356b9ed56e42d36ca18206155b62c94cfbd79d;hp=9115de820770181bd6ff8f8c9b655d047e9fd8c9;hpb=5a69aa14748162429c43ad5ff3d8b35779fff0d4;p=notmuch diff --git a/test/T050-new.sh b/test/T050-new.sh index 9115de82..2035d29f 100755 --- a/test/T050-new.sh +++ b/test/T050-new.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash test_description='"notmuch new" in several variations' -. ./test-lib.sh || exit 1 +. $(dirname "$0")/test-lib.sh || exit 1 test_begin_subtest "No new messages" output=$(NOTMUCH_NEW --debug) @@ -286,8 +286,8 @@ notmuch config set new.tags "-foo;bar" output=$(NOTMUCH_NEW --debug 2>&1) test_expect_equal "$output" "Error: tag '-foo' in new.tags: tag starting with '-' forbidden" -test_expect_code 1 "Invalid tags set exit code" \ - "NOTMUCH_NEW --debug 2>&1" +test_begin_subtest "Invalid tags set exit code" +test_expect_code 1 "NOTMUCH_NEW --debug 2>&1" notmuch config set new.tags $OLDCONFIG @@ -309,7 +309,7 @@ cat < notmuch-new-vanish.gdb set breakpoint pending on set logging file notmuch-new-vanish-gdb.log set logging on -break add_file +break notmuch_database_index_file commands shell rm -f ${MAIL_DIR}/vanish continue