Skip to contentSkip to conversation

cr_tests: futex: Fix mktree usage in run.sh

PATCH New Matt Helsley 1 participant 1 message Jul 13, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cr_tests: futex: Fix mktree usage in run.sh

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

---
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(-)
futex/run.sh +1 -1
index 1ed23ad..d66e64e 100755
@@ -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
Signature · 1 line
1.5.6.3