annotate libtests/0003/run-test.sh @ 369:6564be3109c5 gcc-4.3-cleanups

gcc-4.3 warning cleanups for lshlib.cpp (I do not believe that any of these changes contain significant copyrightable "intellectual property". However, to the extent that they do, the changes are hereby released into the Public Domain, and may be therefore be used by anyone for any purpose without need for consideration of any kind.)
author mas01cr
date Wed, 12 Nov 2008 15:23:32 +0000
parents 94c18f128ce8
children
rev   line source
mas01ik@355 1 #! /bin/bash
mas01ik@355 2
mas01ik@355 3 #. ../test-utils.sh
mas01ik@355 4 #
mas01ik@355 5 #if [ -f testdb ]; then rm -f testdb; fi
mas01ik@355 6 #
mas01ik@355 7 ## creation
mas01ik@355 8 #${AUDIODB} -N -d testdb
mas01ik@355 9 #
mas01ik@355 10 #stat testdb
mas01ik@355 11 #
mas01ik@355 12 ## should fail (testdb exists)
mas01ik@355 13 #expect_clean_error_exit ${AUDIODB} -N -d testdb
mas01ik@355 14 #
mas01ik@355 15 ## should fail (no db given)
mas01ik@355 16 #expect_clean_error_exit ${AUDIODB} -N
mas01ik@355 17 #
mas01ik@355 18 #exit 104
mas01ik@355 19
mas01ik@355 20
mas01ik@355 21 LD_LIBRARY_PATH=../..
mas01ik@355 22 export LD_LIBRARY_PATH
mas01ik@355 23
mas01ik@355 24 . ../test-utils.sh
mas01ik@355 25
mas01ik@355 26 make clean
mas01ik@355 27 make all
mas01ik@355 28
mas01ik@355 29 ./test1
mas01ik@355 30
mas01ik@355 31 exit_code=$?
mas01ik@355 32
mas01ik@355 33 if [ $exit_code -eq 0 ]; then
mas01ik@355 34 exit 104
mas01ik@355 35 else
mas01ik@355 36 exit -1
mas01ik@355 37 fi