comparison libtests/0034/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 1327b5cf4cb5
children 9d8aee621afb
comparison
equal deleted inserted replaced
494:1327b5cf4cb5 495:c291e9201a3c
9 9
10 clean_remove_db(TESTDB); 10 clean_remove_db(TESTDB);
11 if(!(adb = audiodb_create(TESTDB, 0, 0, 0))) 11 if(!(adb = audiodb_create(TESTDB, 0, 0, 0)))
12 return 1; 12 return 1;
13 13
14 maketestfile("testfeature", (int[1]) {2}, (double[2]) {1, 1}, 2); 14 maketestfile("testfeature", 2, (double[2]) {1, 1}, 2);
15 maketestfile("testfeature01", (int[1]) {2}, (double[2]) {0, 1}, 2); 15 maketestfile("testfeature01", 2, (double[2]) {0, 1}, 2);
16 maketestfile("testfeature10", (int[1]) {2}, (double[2]) {1, 0}, 2); 16 maketestfile("testfeature10", 2, (double[2]) {1, 0}, 2);
17 17
18 insert.features = "testfeature"; 18 insert.features = "testfeature";
19 if(audiodb_insert(adb, &insert)) 19 if(audiodb_insert(adb, &insert))
20 return 1; 20 return 1;
21 if(audiodb_status(adb, &status) || status.numFiles != 1) 21 if(audiodb_status(adb, &status) || status.numFiles != 1)