From 7cecb1567d3d71f9e6c9fc3dc5d4bcdcfa121063 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Wed, 16 Jun 2021 19:40:28 +0200 Subject: [PATCH] spa: tests: remove double dot from names of test files Previously, the configured test file would be named like the following: spa-include-test-spa_control_control_h..cpp fix that by removing one of the dots. Furthermore, use the already existing `find` object instead of calling `find_program` one more time. --- spa/tests/meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spa/tests/meson.build b/spa/tests/meson.build index aac32f166..60119d5d0 100644 --- a/spa/tests/meson.build +++ b/spa/tests/meson.build @@ -3,7 +3,7 @@ # Do it for C++ if possible (picks up C++-specific errors), otherwise for C. find = find_program('find', required: false) if find.found() - spa_headers = run_command(find_program('find'), + spa_headers = run_command(find, meson.source_root() / 'spa' / 'include', '-name', '*.h', '-not', '-name', 'type-info.h', @@ -11,7 +11,7 @@ if find.found() '-printf', '%P\n') foreach spa_header : spa_headers.stdout().split('\n') if spa_header.endswith('.h') # skip empty lines - ext = have_cpp ? '.cpp' : '.c' + ext = have_cpp ? 'cpp' : 'c' c = configuration_data() c.set('INCLUDE', spa_header) src = configure_file(input: 'spa-include-test-template.c',