Initial import to Tizen
[profile/ivi/sphinxbase.git] / test / unit / test_util / test_readfile.c
1 /* -*- c-basic-offset: 4; indent-tabs-mode: nil -*- */
2 /**
3  * @file test_readfile.c: Test for the methods to read the file
4  * @author David Huggins-Daines <dhuggins@cs.cmu.edu>
5  */
6
7 #include "ckd_alloc.h"
8 #include "bio.h"
9 #include "test_macros.h"
10
11 #include <stdio.h>
12 #include <string.h>
13 #include <stdlib.h>
14
15 int
16 main(int argc, char *argv[])
17 {
18     int nsamps;
19     int16 *data;
20     
21     data = bio_read_wavfile(TESTDATADIR, "chan3", ".wav", 44, FALSE, &nsamps);
22     TEST_EQUAL(230108, nsamps);
23     
24     ckd_free(data);
25
26     return 0;
27 }