64 bit build fix
[csql.git] / test / dbapi / Threads / test002.ksh
blob19125ed899ff263622fe1b149668f210e603a4cb
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 rm /tmp/out
10 sleep 1
11 if [ $VALGRIND = "true" ]
12 then
13 valgrind --tool=memcheck --leak-check=full ${REL_PATH}/hash 2> $0.valgr
14 else
15 $REL_PATH/hash >/tmp/out
17 sleep 1
18 NO=`grep "Total rows :25000" /tmp/out |wc -l`
19 if [ $NO -ne 15 ]
20 then
21 echo failed with $NO
22 #rm /tmp/out
23 exit 2
25 rm /tmp/out
26 exit 0