git » libjio » commit 96b8cd2

Make tests-fi run longer

author Alberto Bertogli
2011-02-22 23:57:07 UTC
committer Alberto Bertogli
2011-02-23 00:04:24 UTC
parent cea597c4f3d55544c1175c1eec48d04432abf09c

Make tests-fi run longer

To take advantage of the fault injection, we need to do more operations in the
stress test, otherwise we end up with only about 5 simulated failures.

This patch increases the number of operations from 50 to 400, which ends up
making about 40 simulated failures and taking about 2 minutes (overall, not
just the stress test) on my laptop (Thinkpad T400 with a P8400 CPU).

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>

tests/util/quick-test-run.sh +1 -1

diff --git a/tests/util/quick-test-run.sh b/tests/util/quick-test-run.sh
index 474a477..0427db2 100755
--- a/tests/util/quick-test-run.sh
+++ b/tests/util/quick-test-run.sh
@@ -43,7 +43,7 @@ case "$1" in
 		echo
 		echo "stress tests (fiu)"
 		./wrap-python 3 ../stress/jiostress \
-			$(tempfile -p libjio-tests) 20 -n 50 --fi
+			$(tempfile -p libjio-tests) 20 -n 400 --fi
 		;;
 esac