projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
987fb86
)
tests/src/io/test-source_seek.c: add simple test, read() / seek(0) / read()
author
Paul Brossier
<piem@piem.org>
Sat, 23 Mar 2013 00:07:51 +0000
(19:07 -0500)
committer
Paul Brossier
<piem@piem.org>
Sat, 23 Mar 2013 00:07:51 +0000
(19:07 -0500)
tests/src/io/test-source_seek.c
patch
|
blob
|
history
diff --git
a/tests/src/io/test-source_seek.c
b/tests/src/io/test-source_seek.c
index a5f041c29794542c64087ddceb1283be5029449c..bb5cd8277e8dfa94c71bfbe014c146ecda490d88 100644
(file)
--- a/
tests/src/io/test-source_seek.c
+++ b/
tests/src/io/test-source_seek.c
@@
-22,6
+22,7
@@
int main (int argc, char **argv)
uint_t samplerate = 0;
uint_t hop_size = 256;
uint_t n_frames = 0, read = 0;
+ uint_t old_n_frames;
if ( argc == 3 ) samplerate = atoi(argv[2]);
if ( argc == 4 ) hop_size = atoi(argv[3]);
@@
-45,6
+46,8
@@
int main (int argc, char **argv)
aubio_source_seek (s, 0);
+ old_n_frames = n_frames;
+
n_frames = 0;
do {
aubio_source_do(s, vec, &read);
@@
-59,5
+62,6
@@
int main (int argc, char **argv)
beach:
del_fvec (vec);
+ assert ( n_frames == old_n_frames );
return err;
}