64 bit build fix
[csql.git] / test / dbapi / Threads / test003.ksh
blobc3f2960dd418da084f090fe04e3bd2da68637c5c
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}/tree 2> $0.valgr
12 else
13 $REL_PATH/tree >/tmp/out
15 sleep 1
17 NO=`grep "Total rows :25000" /tmp/out |wc -l`
18 if [ $NO -ne 15 ]
19 then
20 echo failed with $NO
21 rm /tmp/out
22 exit 2
24 rm /tmp/out
25 exit 0