From 06ce59d348e30ce3da6106943c2d5660abc4c219 Mon Sep 17 00:00:00 2001 From: nobody Date: Sun, 23 May 1999 18:28:55 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'IR-base'. --- .../Cubit/TAO/MT_Cubit/MT_Cubit_Test | 29 +++------------------- 1 file changed, 4 insertions(+), 25 deletions(-) (limited to 'TAO/performance-tests/Cubit/TAO/MT_Cubit/MT_Cubit_Test') 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..c014e488854 100755 --- a/TAO/performance-tests/Cubit/TAO/MT_Cubit/MT_Cubit_Test +++ b/TAO/performance-tests/Cubit/TAO/MT_Cubit/MT_Cubit_Test @@ -38,36 +38,15 @@ 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` -######## -######## Make sure that the executables have been built. -######## -if [ ! -f ./server -o ! -f ./client ]; then - echo $0: 'server and/or client need to be built!' - exit -1 -fi - - ######## ######## Enable signal handler. ######## -- cgit v1.2.1