view libtests/0023/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
line wrap: on
line source
#! /bin/bash

#. ../test-utils.sh
#
#if [ -f testdb ]; then rm -f testdb; fi
#
## creation
#${AUDIODB} -N -d testdb
#
#stat testdb
#
## should fail (testdb exists)
#expect_clean_error_exit ${AUDIODB} -N -d testdb
#
## should fail (no db given)
#expect_clean_error_exit ${AUDIODB} -N
#
#exit 104

LD_LIBRARY_PATH=../..
export LD_LIBRARY_PATH

. ../test-utils.sh

make clean
make all

./test1 

exit_code=$?

if [ $exit_code -eq 0 ]; then
    exit 104
else
    exit -1
fi