diff options
Diffstat (limited to 'TAO/performance-tests/Cubit/TAO/MT_Cubit/MT_Cubit_Test')
-rwxr-xr-x | TAO/performance-tests/Cubit/TAO/MT_Cubit/MT_Cubit_Test | 29 |
1 files changed, 4 insertions, 25 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..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,37 +38,16 @@ 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. ######## trap 'kill -15 $server_pid; /bin/rm -f $ior_file; exit 0' 0 1 2 15 |