Mercurial > hg > audiodb
comparison libtests/0022/prog1.c @ 495:c291e9201a3c api-inversion
libtests cleanups
Delete unused functions from test_utils.lib.h. maketestfile()'s int*
argument should be an int; fix that and alter the sources accordingly.
Add -Werror to the Makefile for test files, now that they all do compile
without warnings.
author | mas01cr |
---|---|
date | Sat, 10 Jan 2009 15:33:21 +0000 |
parents | f6b126b018d8 |
children |
comparison
equal
deleted
inserted
replaced
494:1327b5cf4cb5 | 495:c291e9201a3c |
---|---|
7 | 7 |
8 clean_remove_db(TESTDB); | 8 clean_remove_db(TESTDB); |
9 if(!(adb = audiodb_create(TESTDB, 0, 0, 0))) | 9 if(!(adb = audiodb_create(TESTDB, 0, 0, 0))) |
10 return 1; | 10 return 1; |
11 | 11 |
12 maketestfile("testfeature01", (int[1]){2}, (double[2]) {0, 1}, 2); | 12 maketestfile("testfeature01", 2, (double[2]) {0, 1}, 2); |
13 maketestfile("testfeature10", (int[1]){2}, (double[2]) {1, 0}, 2); | 13 maketestfile("testfeature10", 2, (double[2]) {1, 0}, 2); |
14 | 14 |
15 batch[0].features="testfeature01"; | 15 batch[0].features="testfeature01"; |
16 batch[1].features="testfeature10"; | 16 batch[1].features="testfeature10"; |
17 if(audiodb_batchinsert(adb, batch, 2)) | 17 if(audiodb_batchinsert(adb, batch, 2)) |
18 return 1; | 18 return 1; |