ref: 19b839f69f8b17e8501a61052b469d404a2edcea
parent: 51a35a7513cce2e8a302887dc8fa3a6a318b90c1
author: Paul Brossier <piem@piem.org>
date: Fri Dec 21 10:28:11 EST 2018
[tests] test del_aubio_source on null
--- a/tests/src/io/base-source_custom.h
+++ b/tests/src/io/base-source_custom.h
@@ -145,6 +145,9 @@
del_fmat(mat);
del_fvec(vec);
+ // shouldn't crash on null (bypassed, only check del_aubio_source)
+ // del_aubio_source_custom(NULL);
+
return run_on_default_source(base_main);
}
--- a/tests/src/io/test-source.c
+++ b/tests/src/io/test-source.c
@@ -141,5 +141,8 @@
del_fmat(mat);
del_fvec(vec);
+ // shouldn't crash on null
+ del_aubio_source(NULL);
+
return run_on_default_source(main);
}