From c0c007dd7f60977047e2d58ec9e3c10fc4ac1302 Mon Sep 17 00:00:00 2001 From: Jesse Rosenthal Date: Wed, 29 Oct 2014 16:51:44 -0400 Subject: [PATCH] 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. --- test/test-lib.sh | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.2