Permalink
Browse files

skipped the hup tests in "check leak" testing mode.

  • Loading branch information...
agentzh committed Jul 30, 2012
1 parent d29e8b3 commit 4697b1dc2c8e69ebe4fb7f194db1fae1159517f7
Showing with 18 additions and 4 deletions.
  1. +9 −2 t/078-hup-vars.t
  2. +9 −2 t/080-hup-shdict.t
View
@@ -1,11 +1,18 @@
# vim:set ft= ts=4 sw=4 et fdm=marker:
+our $SkipReason;
+
BEGIN {
- $ENV{TEST_NGINX_USE_HUP} = 1;
+ if ($ENV{TEST_NGINX_CHECK_LEAK}) {
+ $SkipReason = "unavailable for the hup tests";
+
+ } else {
+ $ENV{TEST_NGINX_USE_HUP} = 1;
+ }
}
use lib 'lib';
-use Test::Nginx::Socket;
+use Test::Nginx::Socket $SkipReason ? (skip_all => $SkipReason) : ();
#worker_connections(1014);
#master_on();
View
@@ -1,11 +1,18 @@
# vim:set ft= ts=4 sw=4 et fdm=marker:
+our $SkipReason;
+
BEGIN {
- $ENV{TEST_NGINX_USE_HUP} = 1;
+ if ($ENV{TEST_NGINX_CHECK_LEAK}) {
+ $SkipReason = "unavailable for the hup tests";
+
+ } else {
+ $ENV{TEST_NGINX_USE_HUP} = 1;
+ }
}
use lib 'lib';
-use Test::Nginx::Socket;
+use Test::Nginx::Socket $SkipReason ? (skip_all => $SkipReason) : ();
#worker_connections(1014);
#master_process_enabled(1);

0 comments on commit 4697b1d

Please sign in to comment.