restored valgrind.suppress file.
This commit is contained in:
Родитель
993590daf0
Коммит
5cf560bc67
|
@ -95,3 +95,5 @@ src/clfactory.h
|
|||
src/filter.c
|
||||
src/filter.h
|
||||
src/contentby.c
|
||||
pack
|
||||
b.sh
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 41bdd4da22db6469b2ae30c8886549e6eff26699
|
||||
Subproject commit 07e53234cbd4835ef17afa8ba7f5c1028490e0dc
|
|
@ -0,0 +1,61 @@
|
|||
# vi:ft=
|
||||
use lib 'lib';
|
||||
use Test::Nginx::Socket;
|
||||
|
||||
#worker_connections(1014);
|
||||
#master_process_enabled(1);
|
||||
#log_level('warn');
|
||||
|
||||
#repeat_each(120);
|
||||
repeat_each(1);
|
||||
|
||||
plan tests => blocks() * repeat_each() * 2;
|
||||
|
||||
my $html_dir = html_dir;
|
||||
#warn $html_dir;
|
||||
|
||||
$ENV{LUA_PATH} = "$html_dir/?.lua";
|
||||
|
||||
#no_diff();
|
||||
#no_long_string();
|
||||
run_tests();
|
||||
|
||||
__DATA__
|
||||
|
||||
=== TEST 1: sanity
|
||||
--- config
|
||||
location /main {
|
||||
echo_location /load;
|
||||
echo_location /check;
|
||||
echo_location /check;
|
||||
}
|
||||
|
||||
location /load {
|
||||
content_by_lua 'package.loaded.foo = null; require "foo";';
|
||||
}
|
||||
|
||||
location /check {
|
||||
content_by_lua '
|
||||
if package.loaded.foo then
|
||||
ngx.say("found")
|
||||
else
|
||||
ngx.say("not found")
|
||||
end
|
||||
';
|
||||
}
|
||||
--- request
|
||||
GET /main
|
||||
--- user_files
|
||||
>>> foo.lua
|
||||
module(..., package.seeall);
|
||||
|
||||
ngx.say("loading");
|
||||
|
||||
function hi ()
|
||||
ngx.say("hello, foo")
|
||||
end;
|
||||
--- response_body
|
||||
loading
|
||||
found
|
||||
found
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
#!/usr/bin/env perl
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
for my $infile (@ARGV) {
|
||||
warn "Processing $infile...\n";
|
||||
open my $in, $infile or
|
||||
die "Cannot open $infile for reading: $!\n";
|
||||
my $s;
|
||||
my $changed = 0;
|
||||
while (<$in>) {
|
||||
$changed += s{//(.*)}{/* $1 */};
|
||||
$s .= $_;
|
||||
}
|
||||
close $in;
|
||||
|
||||
if ($changed) {
|
||||
my $outfile = $infile;
|
||||
open my $out, ">$outfile" or
|
||||
die "Cannot open $outfile for writing: $!\n";
|
||||
print $out $s;
|
||||
close $out;
|
||||
warn "Wrote $outfile\n";
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
<insert_a_suppression_name_here>
|
||||
Memcheck:Leak
|
||||
fun:malloc
|
||||
fun:ngx_alloc
|
||||
fun:ngx_event_process_init
|
||||
fun:ngx_single_process_cycle
|
||||
fun:main
|
||||
}
|
||||
{
|
||||
<insert_a_suppression_name_here>
|
||||
Memcheck:Leak
|
||||
fun:malloc
|
||||
fun:ngx_alloc
|
||||
fun:ngx_crc32_table_init
|
||||
fun:main
|
||||
}
|
||||
|
Загрузка…
Ссылка в новой задаче