at master 18 lines 606 B view raw
1diff --git a/src/audio.c b/src/audio.c 2index d1b9762..cb544dd 100644 3 4This package assumes that there will always be an audio device while testing. 5If there is not an audio device, it segfaults. So in the Nix sandbox, it 6unconditionally segfaults without this patch. This patch allows the tests 7to flow through the normal error handling logic. 8 9--- a/src/audio.c 10+++ b/src/audio.c 11@@ -637,7 +637,6 @@ int start_portaudio(int device, int *nominal_sample_rate, double *real_sample_ra 12 if(testing) { 13 *nominal_sample_rate = PA_SAMPLE_RATE; 14 *real_sample_rate = PA_SAMPLE_RATE; 15- goto end; 16 } 17 #endif 18