summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2010-01-13 10:07:25 +0100
committerStefan Metzmacher <metze@samba.org>2010-01-13 14:51:58 +0100
commit7147c8453e7174e5b6bf20172b48b065fb9b8e99 (patch)
treecf876a2016f181b88ee593611ad6222e79802457
parent129c15c08387dbef0d53f7ed092ed47fb0a86753 (diff)
downloadsamba-7147c8453e7174e5b6bf20172b48b065fb9b8e99.tar.gz
samba-7147c8453e7174e5b6bf20172b48b065fb9b8e99.tar.bz2
samba-7147c8453e7174e5b6bf20172b48b065fb9b8e99.zip
selftest: Print reason when a test fails unexpectedly
-rw-r--r--selftest/output/plain.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/selftest/output/plain.pm b/selftest/output/plain.pm
index 066cacfb29..eae1e7aaac 100644
--- a/selftest/output/plain.pm
+++ b/selftest/output/plain.pm
@@ -162,7 +162,9 @@ sub end_test($$$$$)
return;
}
- $append = "UNEXPECTED($result): $testname\n";
+ chomp $reason;
+
+ $append = "UNEXPECTED($result): $testname\nREASON: $reason\n";
$self->{test_output}->{$self->{NAME}} .= $append;