[Devel] [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
fi
# now try restarting
- $MKTREE < checkpoint-$T
+ $MKTREE -p --copy-status < checkpoint-$T
retval=$?
echo "Restart of test ${T} done, returned $retval"
if [ $retval -ne 0 ]; then
--
1.5.6.3
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list