We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 766b7a8 commit 0e769b7Copy full SHA for 0e769b7
t/082-body-filter-2.t
@@ -13,9 +13,14 @@ BEGIN {
13
$SkipReason = "http2 does not support mockeagain";
14
15
} else {
16
- $ENV{TEST_NGINX_POSTPONE_OUTPUT} = 1;
17
- $ENV{TEST_NGINX_EVENT_TYPE} = 'poll';
18
- $ENV{MOCKEAGAIN}='w'
+ if ($ENV{LD_PRELOAD} && $ENV{LD_PRELOAD} =~ /\bmockeagain\.so\b/) {
+ $ENV{TEST_NGINX_POSTPONE_OUTPUT} = 1;
+ $ENV{TEST_NGINX_EVENT_TYPE} = 'poll';
19
+ $ENV{MOCKEAGAIN}='w'
20
+ } else {
21
+ $SkipReason = "'mockeagain.so' does not appear to be preloaded "
22
+ . "with 'LD_PRELOAD'";
23
+ }
24
}
25
26
0 commit comments