Mercurial > hg > audiodb
comparison libtests/9000/prog1.c @ 497:9d8aee621afb api-inversion
More libtests fixups.
Include audiodb_close() calls everywhere (whoops).
Add the facility to run tests under valgrind. Unfortunately the
error-exitcode flag doesn't actually cause an error exit if the only
thing wrong is memory leaks, but it will if there are actual memory
errors, which is a start.
author | mas01cr |
---|---|
date | Sat, 10 Jan 2009 16:07:43 +0000 |
parents | e072aa1611f5 |
children |
comparison
equal
deleted
inserted
replaced
496:8fb85fbcaba6 | 497:9d8aee621afb |
---|---|
1 #include "audioDB_API.h" | 1 #include "audioDB_API.h" |
2 #include "test_utils_lib.h" | 2 #include "test_utils_lib.h" |
3 | 3 |
4 | 4 int main(int argc, char **argv) { |
5 int main(int argc, char **argv){ | 5 return 14; |
6 | |
7 int returnval=0; | |
8 adb_ptr mydbp={0}; | |
9 int ivals[10]; | |
10 double dvals[10]; | |
11 adb_insert_t myinsert={0}; | |
12 unsigned int myerr=0; | |
13 char * databasename="testdb"; | |
14 adb_query_t myadbquery={0}; | |
15 adb_queryresult_t myadbqueryresult={0}; | |
16 adb_query_t myadbquery2={0}; | |
17 adb_queryresult_t myadbqueryresult2={0}; | |
18 int size=0; | |
19 | |
20 | |
21 | |
22 | |
23 | |
24 | |
25 | |
26 | |
27 returnval=-1; | |
28 | |
29 return(returnval); | |
30 } | 6 } |
31 | 7 |