64 bit build fix
[csql.git] / test / dbapi / Threads / test007.ksh
blob422ade66824d995d663056a8602c6dfda14814f8
1 #!/bin/ksh
2 FILE=${PWD}/dbapi/Threads/noindex
3 REL_PATH=.
4 if [ -s "$FILE" ]
5 then
6 REL_PATH=`pwd`/dbapi/Threads
7 fi
8 sleep 1
9 if [ $VALGRIND = "true" ]
10 then
11 valgrind --tool=memcheck --leak-check=full ${REL_PATH}/autoinc 2> $0.valgr
12 else
13 $REL_PATH/autoinc >/tmp/out
15 sleep 1
16 NO=`grep "Total rows :25000" /tmp/out |wc -l`
17 if [ $NO -ne 10 ]
18 then
19 echo failed with $NO
20 rm /tmp/out
21 exit 2
23 rm /tmp/out
24 exit 0