changeset 918:8d489e743fcb

Tests: TODO certain alerts on win32.
author Sergey Kandaurov <pluknet@nginx.com>
date Thu, 28 Apr 2016 16:24:31 +0300
parents 6af0421615ea
children 724fcee9a355
files lib/Test/Nginx.pm
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lib/Test/Nginx.pm
+++ b/lib/Test/Nginx.pm
@@ -72,6 +72,11 @@ sub DESTROY {
 			$Test::Nginx::TODO = 'alerts' if @alerts
 				&& ! grep { $_ !~ /phantom event/ } @alerts;
 		}
+		if ($^O eq 'MSWin32') {
+			my $re = qr/CloseHandle|TerminateProcess/;
+			$Test::Nginx::TODO = 'alerts' if @alerts
+				&& ! grep { $_ !~ $re } @alerts;
+		}
 
 		Test::More::is(join("\n", @alerts), '', 'no alerts');
 	}