annotate libtests/0002/prog1.c @ 489:4cb6c611f812 api-inversion

Begin removing uses of audiodb_query() audiodb_query() is actually an unsupportable interface. It requires access to the filesystem, does not (and cannot) actually support whole swathes of functionality, is only implementable using code that is no longer part of the core of audioDB (reporter.h), is in the way of fixing memory leaks in the SOAP server, and is horrible to use to boot. So, begin converting the libtests uses of audiodb_query() to audio_query_spec(). In the process, go through the test code and remove useless comments, pointless variables, and commented-out bits of shell scripts.
author mas01cr
date Sat, 10 Jan 2009 15:32:53 +0000
parents e072aa1611f5
children
rev   line source
mas01cr@487 1 #include "audioDB_API.h"
mas01cr@487 2 #include "test_utils_lib.h"
mas01ik@355 3
mas01cr@489 4 int main(int argc, char **argv) {
mas01cr@489 5 adb_t *adb;
mas01cr@489 6 adb_status_t status={0};
mas01ik@355 7
mas01cr@489 8 clean_remove_db(TESTDB);
mas01ik@355 9
mas01cr@489 10 adb = audiodb_create(TESTDB, 0, 0, 0);
mas01ik@355 11
mas01cr@489 12 if(audiodb_status(adb, &status)){
mas01cr@489 13 return 1;
mas01cr@489 14 }
mas01cr@489 15 if(status.numFiles != 0)
mas01cr@489 16 return 1;
mas01ik@355 17
mas01cr@489 18 audiodb_close(adb);
mas01ik@355 19
mas01cr@489 20 return 104;
mas01ik@355 21 }
mas01ik@355 22