Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

various test suite improvements and added more debugging outputs (dd …

…macros).
  • Loading branch information...
commit 3397cd4feda277b6b6c3260a5a07f1d1edb02013 1 parent 253db2b
@agentzh agentzh authored
View
6 src/ngx_http_rds_json_filter_module.c
@@ -345,6 +345,8 @@ ngx_http_rds_json_filter_init(ngx_conf_t *cf)
dd("setting next filter");
if (ngx_http_rds_json_filter_used) {
+ dd("register filters");
+
ngx_http_rds_json_next_header_filter = ngx_http_top_header_filter;
ngx_http_top_header_filter = ngx_http_rds_json_header_filter;
@@ -676,6 +678,8 @@ ngx_http_rds_json_user_property(ngx_conf_t *cf, ngx_command_t *cmd,
static char *
ngx_http_rds_json(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
{
+ dd("set filter used to 1");
+
ngx_http_rds_json_filter_used = 1;
return ngx_conf_set_flag_slot(cf, cmd, conf);
@@ -684,6 +688,8 @@ ngx_http_rds_json(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
static ngx_int_t ngx_http_rds_json_pre_config(ngx_conf_t *cf)
{
+ dd("set filter used to 0");
+
ngx_http_rds_json_filter_used = 0;
return NGX_OK;
View
2  t/buf.t
@@ -3,7 +3,7 @@
use lib 'lib';
use Test::Nginx::Socket;
-repeat_each(1);
+repeat_each(2);
plan tests => repeat_each() * 2 * blocks();
View
2  t/compact/buf.t
@@ -3,7 +3,7 @@
use lib 'lib';
use Test::Nginx::Socket;
-repeat_each(1);
+repeat_each(2);
plan tests => repeat_each() * 2 * blocks();
View
2  t/compact/sanity-stream.t
@@ -6,7 +6,7 @@ use Test::Nginx::Socket;
#repeat_each(10);
no_shuffle();
-repeat_each(1);
+repeat_each(2);
plan tests => repeat_each() * 2 * blocks() + 2 * repeat_each() * 3;
View
2  t/compact/sanity.t
@@ -6,7 +6,7 @@ use Test::Nginx::Socket;
#repeat_each(10);
no_shuffle();
-repeat_each(1);
+repeat_each(2);
plan tests => repeat_each() * 2 * blocks() + 2 * repeat_each() * 3;
View
2  t/sanity-stream.t
@@ -6,7 +6,7 @@ use Test::Nginx::Socket;
#repeat_each(10);
no_shuffle();
-repeat_each(1);
+repeat_each(2);
plan tests => repeat_each() * 2 * blocks() + 2 * repeat_each() * 3;
View
3  t/sanity.t
@@ -21,6 +21,7 @@ our $http_config = <<'_EOC_';
_EOC_
#no_long_string();
+#master_on();
run_tests();
@@ -34,7 +35,7 @@ __DATA__
location /mysql {
drizzle_pass backend;
#drizzle_dbname $dbname;
- drizzle_query 'select * from cats';
+ drizzle_query 'select * from cats order by id';
rds_json on;
}
--- request
View
7 valgrind.suppress
@@ -1,5 +1,12 @@
{
<insert_a_suppression_name_here>
+ Memcheck:Param
+ socketcall.sendmsg(msg.msg_iov[i])
+ fun:__sendmsg_nocancel
+ fun:ngx_write_channel
+}
+{
+ <insert_a_suppression_name_here>
Memcheck:Leak
fun:malloc
fun:ngx_alloc
Please sign in to comment.
Something went wrong with that request. Please try again.