[PATCH 3 of 4] test-patchbomb.t: add test for case where sendmail fails
Bryan O'Sullivan
bos at serpentine.com
Mon Jan 4 23:56:09 CST 2016
# HG changeset patch
# User Bryan O'Sullivan <bos at serpentine.com>
# Date 1451973286 28800
# Mon Jan 04 21:54:46 2016 -0800
# Node ID 3838e999a656ccd5644fadac75ed91f15ad22854
# Parent 1dcd7d9c98ffab398482b07c539c9520235588e8
test-patchbomb.t: add test for case where sendmail fails
Notice that the wrong error code is reported. To be continued...
diff --git a/tests/test-patchbomb.t b/tests/test-patchbomb.t
--- a/tests/test-patchbomb.t
+++ b/tests/test-patchbomb.t
@@ -2816,7 +2816,9 @@ bad value setting
$ echo 'intro=mpmwearaclownnose' >> $HGRCPATH
-single rev
+single rev, and introduce a deliberate fake sendmail failure
+
+ $ echo exit 78 >> pretendmail.sh
$ hg email --date '1980-1-1 0:1' -v -t foo -s test -r '10'
From [test]: test
@@ -2858,6 +2860,8 @@ single rev
sending [PATCH] test ...
sending mail: $TESTTMP/t2/pretendmail.sh -f test foo
+ abort: pretendmail.sh exited with status 19968
+ [255]
Test pull url header
=================================
More information about the Mercurial-devel
mailing list