annotate libtests/0010/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 LD_LIBRARY_PATH=../..
mas01ik@355 21 export LD_LIBRARY_PATH
mas01ik@355 22
mas01ik@355 23 . ../test-utils.sh
mas01ik@355 24
mas01ik@355 25 make clean
mas01ik@355 26 make all
mas01ik@355 27
mas01ik@355 28 ./test1
mas01ik@355 29
mas01ik@355 30 exit_code=$?
mas01ik@355 31
mas01ik@355 32 if [ $exit_code -eq 0 ]; then
mas01ik@355 33 exit 104
mas01ik@355 34 else
mas01ik@355 35 exit -1
mas01ik@355 36 fi