shithub: aubio

Download patch

ref: 37c7e61a5ed40454aabbbcb04c4a334caad04823
parent: 19b839f69f8b17e8501a61052b469d404a2edcea
author: Paul Brossier <piem@piem.org>
date: Fri Dec 21 10:30:14 EST 2018

[tests] test del_aubio_sink on null

--- a/tests/src/io/base-sink_custom.h
+++ b/tests/src/io/base-sink_custom.h
@@ -151,6 +151,9 @@
   // delete temp file
   close_temp_sink(sink_path, fd);
 
+  // shouldn't crash on null (bypassed, only check del_aubio_sink)
+  // del_aubio_sink_custom(NULL);
+
   return run_on_default_source_and_sink(base_main);
 }
 
--- a/tests/src/io/test-sink.c
+++ b/tests/src/io/test-sink.c
@@ -147,5 +147,8 @@
   // delete temp file
   close_temp_sink(sink_path, fd);
 
+  // shouldn't crash on null
+  del_aubio_sink(NULL);
+
   return run_on_default_source_and_sink(main);
 }