view libtests/0026/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 9d8aee621afb
line wrap: on
line source
#include "audioDB_API.h"
#include "test_utils_lib.h"

int main(int argc, char **argv) {
  adb_t *adb;
  
  clean_remove_db(TESTDB);
  if(!(adb = audiodb_create(TESTDB, 0, 0, 0)))
    return 1;

  if(audiodb_power(adb))
    return 1;
  if(audiodb_power(adb))
    return 1;

  return 104;
}