diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-05-23 18:28:55 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-05-23 18:28:55 +0000 |
commit | 06ce59d348e30ce3da6106943c2d5660abc4c219 (patch) | |
tree | 193a5f6f9b2e16cb3c722e5ef066dd266832a6bd /TAO/performance-tests/Cubit/TAO/MT_Cubit/MT_Cubit_Test | |
parent | 74205f4d54deada413395d34b3dfa99d51c6f7cb (diff) | |
download | ATCD-IR-base.tar.gz |
This commit was manufactured by cvs2svn to create tag 'IR-base'.IR-base
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 |