63bd314a0b
* Update cmpset test to call memory barrier when needed before checking the results * remove unneeded sync from cmpset_32 on Power PC This commit was SVN r5420.
28 строки
542 B
Bash
28 строки
542 B
Bash
#!/bin/sh
|
|
|
|
retval=-1
|
|
|
|
progname="`basename $*`"
|
|
echo "--> Testing $progname"
|
|
|
|
for threads in 1 2 4 5 8 ; do
|
|
$* $threads
|
|
result=$?
|
|
if test "$result" = "0" ; then
|
|
echo " - $threads threads: Passed"
|
|
if test "$retval" = "-1" ; then
|
|
retval=0
|
|
fi
|
|
elif test "$result" = "77" ; then
|
|
echo " - $threads threads: Skipped"
|
|
if test "$retval" = "-1" ; then
|
|
retval=77
|
|
fi
|
|
else
|
|
echo " - $threads threads: Failed"
|
|
retval="$result"
|
|
fi
|
|
done
|
|
|
|
exit $retval
|