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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 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@xxxxxxxxxx>
---
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@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/containers

[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux