From b2a82e37d0c8588ade7d4bccad6e7b028bbb3970 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20L=C3=B3pez-Cabanillas?= Date: Sat, 2 Nov 2024 15:27:07 +0100 Subject: [PATCH] checking the output file from fast render fails in Windows --- CMakeLists.txt | 2 +- test/test_fast_render.c | 13 ++++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 111320bcb..bcb7062ae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -517,7 +517,7 @@ set ( ALSA_MINIMUM_VERSION 0.9.1 ) set ( DBUS_MINIMUM_VERSION 1.11.12 ) set ( GLIB2_MINUMUM_VERSION 2.6.5 ) set ( LIBINSTPATCH_MINIMUM_VERSION 1.1.0 ) -set ( LIBSNDFILE_MINIMUM_VERSION 1.0.0 ) +set ( LIBSNDFILE_MINIMUM_VERSION 1.2.1 ) set ( PIPEWIRE_MINIMUM_VERSION 0.3 ) set ( PORTAUDIO_MINIMUM_VERSION 2.19 ) set ( PULSEAUDIO_MINIMUM_VERSION 2.0 ) diff --git a/test/test_fast_render.c b/test/test_fast_render.c index 0dd51e097..c6b0ecaca 100644 --- a/test/test_fast_render.c +++ b/test/test_fast_render.c @@ -35,8 +35,8 @@ int main(void) renderer = new_fluid_file_renderer(synth); TEST_ASSERT(renderer != NULL); - - fluid_player_play(player); + + TEST_SUCCESS(fluid_player_play(player)); while (fluid_player_get_status(player) == FLUID_PLAYER_PLAYING) { @@ -50,6 +50,13 @@ int main(void) delete_fluid_player(player); delete_fluid_synth(synth); delete_fluid_settings(settings); - + +#if 0 + FILE *file; + file = FLUID_FOPEN(TEST_WAV_UTF8, "rb"); + TEST_ASSERT(file != NULL); + TEST_ASSERT(FLUID_FCLOSE(file) == 0); +#endif + return EXIT_SUCCESS; }