From 49c45c6ea09464862779b09ad7f22c30977a2060 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 28 May 2010 03:42:15 +0000 Subject: tests: t0005: fudge the file malloc limit a bit it's hard to make this test reliable, but try to add a small fudge factor based on the MRI default GC malloc limit. --- t/t0005-large-file-response.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 't/t0005-large-file-response.sh') diff --git a/t/t0005-large-file-response.sh b/t/t0005-large-file-response.sh index d25134e..b663e65 100755 --- a/t/t0005-large-file-response.sh +++ b/t/t0005-large-file-response.sh @@ -72,8 +72,12 @@ t_begin "shutdown server" && { t_begin "compare RSS before and after" && { diff=$(( $rss_after - $rss_before )) + + # default GC malloc limit in MRI: + fudge=$(( 8 * 1024 * 1024 )) + t_info "test diff=$diff < orig=$random_blob_size" - test $diff -le $random_blob_size + test $diff -le $(( $random_blob_size + $fudge )) } dbgcat r_err -- cgit v1.2.3-24-ge0c7