ref: f9204acd32615acdbd098218b09f0e30c4c7d35b
parent: 242e923672751329b0b11035eac76a6f26d20654
author: Paul Brossier <piem@piem.org>
date: Thu Nov 29 13:39:02 EST 2018
[tests] fix argument parsing in source
--- a/tests/src/io/test-source.c
+++ b/tests/src/io/test-source.c
@@ -22,8 +22,8 @@
uint_t samplerate = 0;
uint_t hop_size = 256;
uint_t n_frames = 0, read = 0;
- if ( argc == 3 ) samplerate = atoi(argv[2]);
- if ( argc == 4 ) hop_size = atoi(argv[3]);
+ if ( argc >= 3 ) samplerate = atoi(argv[2]);
+ if ( argc >= 4 ) hop_size = atoi(argv[3]);
char_t *source_path = argv[1];