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.
This commit is contained in:
Jesse Rosenthal 2014-10-29 16:51:44 -04:00 committed by David Bremner
parent 67e368ac7b
commit c0c007dd7f

View file

@ -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