Mercurial > hg > audiodb
view tests/0026/run-test.sh @ 391:69f8bf88c0ff api-inversion
close the database returned from audiodb_create() inside audioDB::create
Now valgrind --leak-check=full agrees that we don't leak memory on
create in the no-error path! Yay!!
author | mas01cr |
---|---|
date | Mon, 24 Nov 2008 12:50:38 +0000 |
parents | fe4dc39b2dd7 |
children |
line wrap: on
line source
#! /bin/bash . ../test-utils.sh if [ -f testdb ]; then rm -f testdb; fi ${AUDIODB} -N -d testdb ${AUDIODB} -P -d testdb ${AUDIODB} -d testdb -P # should fail (no db given) expect_clean_error_exit ${AUDIODB} -P exit 104