Mercurial > hg > audiodb
annotate libtests/0030/run-test.sh @ 359:d72ff5d0292f gcc-4.3-cleanups
YET MORE CONST-CORRECTNESS.
The pain and suffering involved is endless. However, these changes at
least make all the stupid warnings about deprecated conversions go away.
(I confess to a little bit of cargo-cult programming here; I can't keep
in my brain the differences between const char*, char *const and
const*const char all at once).
author | mas01cr |
---|---|
date | Wed, 12 Nov 2008 13:05:10 +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 |