test: always build path_source and options/path.c for test_utils

Because the previous commit started using mp_get_user_path in core
m_option files, various tests failed with undefined references due to
these two files not being included. Add them to the common list of
test_utils files.
This commit is contained in:
Dudemanguy committed 2025-07-22 17:52:41 +00:00
1 parent 9b7374ea40
commit afbd3abb20
1 file changed
+3 -3
+3 -3
View File
@@ -22,8 +22,10 @@ test_utils_files = [
'options/m_config_core.c',
'options/m_config_frontend.c',
'options/m_option.c',
'options/path.c',
'osdep/io.c',
'osdep/timer.c',
path_source,
timer_source,
'ta/ta.c',
'ta/ta_talloc.c',
@@ -110,9 +112,7 @@ codepoint_width = executable('codepoint-width', files('codepoint_width.c'),
include_directories: incdir, link_with: test_utils)
test('codepoint-width', codepoint_width)
paths_objects = libmpv.extract_objects('options/path.c', path_source)
paths = executable('paths', 'paths.c', include_directories: incdir,
objects: paths_objects, link_with: test_utils)
paths = executable('paths', 'paths.c', include_directories: incdir, link_with: test_utils)
test('paths', paths)
if get_option('libmpv')