From 955c01f5c4989ad2b0a1feec948257bf806cf1f8 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Fri, 7 Oct 2022 03:26:37 +0200 Subject: tests/meson.build: Turn file list into list of file objects When a file object is created, Meson also checks if the file actually exists and an error points to the specific line of meson.build if not. If just a list of filenames is used, then the error occurs at the line where the list is used. Thus, use file objects in tests/meson.build for more useful error messages. Signed-off-by: Felix Singer Change-Id: I0b9144a6b76c1772833817b4e6873818dcf36b05 Reviewed-on: https://review.coreboot.org/c/flashrom/+/68197 Tested-by: build bot (Jenkins) Reviewed-by: Anastasia Klimchuk Reviewed-by: Thomas Heijligen --- tests/meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/meson.build b/tests/meson.build index e4f7c2aa2..c62cc1b38 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -11,7 +11,7 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. -srcs = [ +srcs = files( 'io_mock.c', 'tests.c', 'libusb_wraps.c', @@ -31,7 +31,7 @@ srcs = [ 'layout.c', 'chip.c', 'chip_wp.c', -] +) if not programmer.get('dummy').get('active') srcs += programmer.get('dummy').get('srcs') -- cgit v1.2.3