changeset 51:d59ae7bab0a6

Tests: cat error log to stdout if TEST_NGINX_CATLOG set. Note: this isn't really TAP complaint and may confuse Test::Harness. But it's useful for development and analysing test failures by hand. use
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 24 Nov 2008 13:06:21 +0300
parents b494fe5b12d1
children 405e8ca11c77
files lib/Test/Nginx.pm
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lib/Test/Nginx.pm
+++ b/lib/Test/Nginx.pm
@@ -42,6 +42,9 @@ sub new {
 sub DESTROY {
 	my ($self) = @_;
 	$self->stop();
+	if ($ENV{TEST_NGINX_CATLOG}) {
+		system("cat $self->{_testdir}/error.log");
+	}
 }
 
 sub has {