From 54686dfd79075df93d01c433294b9159abaf02c7 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 26 Nov 2021 08:35:08 +0100 Subject: [PATCH] test/meson.build: add dependencies on run_input Fixes spurious unit test failures because run_input has not yet been built. --- test/meson.build | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/test/meson.build b/test/meson.build index 21db24294..514ec8248 100644 --- a/test/meson.build +++ b/test/meson.build @@ -284,7 +284,7 @@ endif # Input # -executable( +run_input = executable( 'run_input', 'run_input.cxx', '../src/TagSave.cxx', @@ -340,19 +340,31 @@ if archive_glue_dep.found() if libiso9660_dep.found() if find_program('mkisofs', required: false).found() - test('test_archive_iso9660', find_program('test_archive_iso9660.sh')) + test( + 'test_archive_iso9660', + find_program('test_archive_iso9660.sh'), + depends: run_input, + ) endif endif if libbz2_dep.found() if find_program('bzip2', required: false).found() - test('test_archive_bzip2', find_program('test_archive_bzip2.sh')) + test( + 'test_archive_bzip2', + find_program('test_archive_bzip2.sh'), + depends: run_input, + ) endif endif if libzzip_dep.found() if find_program('zip', required: false).found() - test('test_archive_zzip', find_program('test_archive_zzip.sh')) + test( + 'test_archive_zzip', + find_program('test_archive_zzip.sh'), + depends: run_input, + ) endif endif endif