pgpool2.git / summary / log / commit / refs

commit    4025e563510178785dbbc4f57813f52a70ab32cd
Author:   Tatsuo Ishii <ishii@postgresql.org>
Date:     Thu Dec 04 01:46:13 2014 +0000

    Fix memory leak test.
    
    Fix wrong test memory leak existence.
    
    Fix from Usama:
    > Also I have made a small change in the newly added test case to test memory
    > leaks, I have added the statement to run the pgbench for 1 second before
    > the script takes the initial memory size to catter the startup memory
    > required by child process.


src/test/regression/tests/060.memory_leak/test.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/regression/tests/060.memory_leak/test.sh b/src/test/regression/tests/060.memory_leak/test.sh index a46b7ef61..aaed9f12e 100755 --- a/src/test/regression/tests/060.memory_leak/test.sh +++ b/src/test/regression/tests/060.memory_leak/test.sh @@ -35,6 +35,8 @@ do # initialize tables $PGBENCH -i test + $PGBENCH -S -T 1 test + # find pgpool-II child process id and grab initial process size (virtual size) foo=`ps x|grep "pgpool: wait for connection request"` pid=`echo $foo|awk '{print $1}'` @@ -49,7 +51,7 @@ do echo "initial process size: $init_size after size: $after_size delta: $delta" - test -f "$delta -eq 0" + test "$delta -eq 0" if [ $? != 0 ];then echo "memory leak in $delta KB in mode:$mode" [parent: bcecfcc8bbd0]