[PATCH] cr_tests: futex: Fix mktree usage in run.sh

Matt Helsley matthltc at us.ibm.com
Mon Jul 13 06:24:32 PDT 2009

 Restore the pids since robust and pi futexes rely on the pids to
 determine which task has the futex. Also use --copy-status to ensure
 that the exit code from the restarted processes propagate to run.sh

Signed-off-by: Matt Helsley <matthltc at us.ibm.com>
I believe this is the most important fix to get robust futex tests
running properly via run.sh. I've actually got a whole series that
tweaks run.sh but most of those are only beneficial if the tests fail
at various stages.

 futex/run.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/futex/run.sh b/futex/run.sh
index 1ed23ad..d66e64e 100755
--- a/futex/run.sh
+++ b/futex/run.sh
@@ -61,7 +61,7 @@ for T in ${TESTS[@]} ; do
 	# now try restarting
-	$MKTREE < checkpoint-$T
+	$MKTREE -p --copy-status < checkpoint-$T
 	echo "Restart of test ${T} done, returned $retval"
 	if [ $retval -ne 0 ]; then

More information about the Containers mailing list