diff options
Diffstat (limited to 'tests/include.rc')
-rw-r--r-- | tests/include.rc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/include.rc b/tests/include.rc index 03c615e5e1a..4008ad36f0c 100644 --- a/tests/include.rc +++ b/tests/include.rc @@ -214,6 +214,12 @@ function build_tester () gcc -g -o $(dirname $cfile)/$execname $cfile } +function process_leak_count () +{ + local pid=$1; + return $(ls -lh /proc/$pid/fd | grep "(deleted)"| wc -l) +} + alias EXPECT='_EXPECT $LINENO' alias TEST='_TEST $LINENO' alias EXPECT_WITHIN='_EXPECT_WITHIN $LINENO' |