mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	tests: Add a basic sanity test to sconv cpu-test
This seems redundant with the previous check in that function, but it makes sure that the result of the speed comparison is what we think it is.
This commit is contained in:
		
							parent
							
								
									472fe05297
								
							
						
					
					
						commit
						7914e1286b
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -236,6 +236,8 @@ static void run_conv_test_float_to_s16(pa_convert_func_t func, pa_convert_func_t
 | 
				
			||||||
    PA_CPU_TEST_RUN_START("orig", TIMES, TIMES2) {
 | 
					    PA_CPU_TEST_RUN_START("orig", TIMES, TIMES2) {
 | 
				
			||||||
        orig_func(SAMPLES, floats, samples_ref);
 | 
					        orig_func(SAMPLES, floats, samples_ref);
 | 
				
			||||||
    } PA_CPU_TEST_RUN_STOP
 | 
					    } PA_CPU_TEST_RUN_STOP
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    fail_unless(memcmp(samples_ref, samples, sizeof(samples)) == 0);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if defined (__i386__) || defined (__amd64__)
 | 
					#if defined (__i386__) || defined (__amd64__)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue