diff options
| author | David Bremner <david@tethera.net> | 2022-08-04 08:08:32 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2022-08-07 07:05:49 -0300 |
| commit | 2c7438fe51e13ad3cfd54286f963066c5498af34 (patch) | |
| tree | 1bb053c192192fb304476718493943f24b00689c /test | |
| parent | 3a175ddffba61e49197190127621684c8f5b18a8 (diff) | |
test/emacs: add known broken test for stashing duplicate filename
This duplicates (no pun intended) one of the bugs reported by Gregor
in id:87edxw8jp4.fsf@no.workgroup
Diffstat (limited to 'test')
| -rwxr-xr-x | test/T450-emacs-show.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/T450-emacs-show.sh b/test/T450-emacs-show.sh index 37940c96..2cebd43d 100755 --- a/test/T450-emacs-show.sh +++ b/test/T450-emacs-show.sh @@ -350,6 +350,15 @@ file=$(notmuch search --output=files id:${ID3} | head -n 3 | tail -n 1) subject=$(grep '^Subject:' $file) test_expect_equal "$output" "$subject" +FILE3=$(notmuch search --output=files --duplicate=3 "id:${ID3}") +test_begin_subtest "duplicate=3, stash" +test_subtest_known_broken +test_emacs_expect_t \ + "(notmuch-show \"id:${ID3}\") + (notmuch-show-choose-duplicate 3) + (notmuch-show-stash-filename) + (notmuch-test-expect-equal (list (car kill-ring)) (list \"${FILE3}\"))" + test_begin_subtest "duplicate=0" test_emacs "(test-log-error (notmuch-show \"id:${ID3}\") |
