shithub: libsamplerate

Download patch

ref: 63de5c1c34ad87a64274eef5f523aea1b96f2a75
parent: 19403f9148d1335bfc0ae8536dd22a518c3f6418
author: Erik de Castro Lopo <erikd@mega-nerd.com>
date: Fri Mar 7 18:45:54 EST 2008

tests/throughput_test.c : Reduce test duration and sleep between each test.

--- a/tests/throughput_test.c
+++ b/tests/throughput_test.c
@@ -50,6 +50,8 @@
 
 	src_data.src_ratio = 0.99 ;
 
+	sleep (1) ;
+
 	start_time = clock () ;
 
 	do
@@ -64,7 +66,7 @@
 		clock_time = clock () - start_time ;
 		duration = (1.0 * clock_time) / CLOCKS_PER_SEC ;
 	}
-	while (duration < 5.0) ;
+	while (duration < 3.0) ;
 
 	if (src_data.input_frames_used != ARRAY_LEN (input))
 	{	printf ("\n\nLine %d : input frames used %ld should be %d\n", __LINE__, src_data.input_frames_used, ARRAY_LEN (input)) ;