summaryrefslogtreecommitdiff
path: root/TAO/performance-tests/Cubit/TAO/MT_Cubit/MT_Cubit_Test
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/performance-tests/Cubit/TAO/MT_Cubit/MT_Cubit_Test')
-rwxr-xr-xTAO/performance-tests/Cubit/TAO/MT_Cubit/MT_Cubit_Test25
1 files changed, 9 insertions, 16 deletions
diff --git a/TAO/performance-tests/Cubit/TAO/MT_Cubit/MT_Cubit_Test b/TAO/performance-tests/Cubit/TAO/MT_Cubit/MT_Cubit_Test
index b7cf303ed43..fd21385fae8 100755
--- a/TAO/performance-tests/Cubit/TAO/MT_Cubit/MT_Cubit_Test
+++ b/TAO/performance-tests/Cubit/TAO/MT_Cubit/MT_Cubit_Test
@@ -38,26 +38,19 @@ while getopts ?ln:r:t arg; do
'?' ) echo $usage; echo $usage2; exit 0 ;;
esac
done
+shift `expr $OPTIND - 1`
-if [ "$OPTIND" ]; then
- shift `expr $OPTIND - 1`
-
- if [ $# -ne 1 ]; then
- echo $usage; echo $usage2
- exit 1
- fi
-else
- #### sh does not support $OPTIND. Arg error checking isn't as good.
- if [ $# -lt 1 ]; then
- echo $usage; echo $usage2
- exit 1
- fi
-
- shift `expr $# - 1`
+if [ $# -ne 1 ]; then
+ echo $usage; echo $usage2
+ exit 1
fi
-
threads=`expr $1 + 1`
+if [ $threads -ge 40 ]; then
+ echo $0: limit of 40 threads
+ exit 0
+fi
+
########
######## Make sure that the executables have been built.