From: Jesse Rosenthal Date: Wed, 29 Oct 2014 20:51:44 +0000 (-0400) Subject: test-lib: Add dummy subject to force empty subject X-Git-Url: https://rtime.felk.cvut.cz/gitweb/notmuch.git/commitdiff_plain/c0c007dd7f60977047e2d58ec9e3c10fc4ac1302 test-lib: Add dummy subject to force empty subject At the moment, the test-lib fills in any missing headers. This makes it impossible to test our handling of empty subjects. This will allow us to use a special dummy subject -- `@FORCE_EMPTY` -- to force the subject to remain empty. --- diff --git a/test/test-lib.sh b/test/test-lib.sh index 53db9caa..6057238c 100644 --- a/test/test-lib.sh +++ b/test/test-lib.sh @@ -368,6 +368,8 @@ generate_message () else template[subject]="Test message #${gen_msg_cnt}" fi + elif [ "${template[subject]}" = "@FORCE_EMPTY" ]; then + template[subject]="" fi if [ -z "${template[date]}" ]; then