aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Rosenthal <jrosenthal@jhu.edu>2014-10-29 16:51:44 -0400
committerDavid Bremner <david@tethera.net>2015-01-17 13:49:05 +0100
commitc0c007dd7f60977047e2d58ec9e3c10fc4ac1302 (patch)
tree8851b5f212d3c576de1f59eef5c10c68f0c3d011
parent67e368ac7ba84b0ea70356c2bdb3a14018009294 (diff)
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.
-rw-r--r--test/test-lib.sh2
1 files changed, 2 insertions, 0 deletions
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