dovecot-2.2-pigeonhole: testsuite: editheader: Made test failure...

pigeonhole at rename-it.nl pigeonhole at rename-it.nl
Fri May 9 06:55:09 UTC 2014


details:   http://hg.rename-it.nl/dovecot-2.2-pigeonhole/rev/9f8a3411090a
changeset: 1857:9f8a3411090a
user:      Stephan Bosch <stephan at rename-it.nl>
date:      Fri May 09 08:55:02 2014 +0200
description:
testsuite: editheader: Made test failure messages a bit more verbose.

diffstat:

 tests/extensions/editheader/addheader.svtest |  12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r 3b6917a4807c -r 9f8a3411090a tests/extensions/editheader/addheader.svtest
--- a/tests/extensions/editheader/addheader.svtest	Fri May 09 01:32:52 2014 +0200
+++ b/tests/extensions/editheader/addheader.svtest	Fri May 09 08:55:02 2014 +0200
@@ -436,11 +436,13 @@
 	}
 
 	if not header :is "x-some-header-first" "${before_out}" {
-		test_fail "wrong first content added";
+		if header :matches "x-some-header-first" "*" {}
+		test_fail "wrong first content added: `${0}`";
 	}
 
 	if not header :is "x-some-header-last" "${after_out}" {
-		test_fail "wrong last content added";
+		if header :matches "x-some-header-last" "*" {}
+		test_fail "wrong last content added: `${0}`";
 	}
 
 	redirect "frop at example.com";
@@ -466,11 +468,13 @@
 	}
 
 	if not header :is "x-some-header-first" "${before_out}" {
-		test_fail "wrong first header content in redirected mail ";
+		if header :matches "x-some-header-first" "*" {}
+		test_fail "wrong first header content in redirected mail: `${0}`";
 	}
 
 	if not header :is "x-some-header-last" "${after_out}" {
-		test_fail "wrong last header content in redirected mail ";
+		if header :matches "x-some-header-last" "*" {}
+		test_fail "wrong last header content in redirected mail: `${0}`";
 	}
 
 	if not body :matches "Frop!*" {


More information about the dovecot-cvs mailing list