meson: replace deprecated meson.get_cross_property(...) with meson.get_external_property(...)

According to the deprecation note:
> It's a pure subset of meson.get_external_property, and works strangely
> in host == build configurations, since it would be more accurately
> described as get_host_property.

Signed-off-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19904>
This commit is contained in:
Eric Engestrom 2022-04-18 17:27:15 +01:00 committed by Marge Bot
parent 9b6ab40b3b
commit 8140eca23b
5 changed files with 5 additions and 5 deletions

View File

@ -24,7 +24,7 @@ fi
# tests in their meson.build with:
#
# test(...,
# should_fail: meson.get_cross_property('xfail', '').contains(t),
# should_fail: meson.get_external_property('xfail', '').contains(t),
# )
#
# where t is the name of the test, and the '' is the string to search when

View File

@ -437,7 +437,7 @@ if with_tests
),
suite : ['compiler', 'nir'],
# TODO: Use a negative filter for gtest instead of the expect failure here.
should_fail : meson.get_cross_property('xfail', '').contains('load_store_vectorizer'),
should_fail : meson.get_external_property('xfail', '').contains('load_store_vectorizer'),
protocol : gtest_test_protocol,
)

View File

@ -140,7 +140,7 @@ if with_tests and with_gallium_softpipe and draw_with_llvm
link_with : [libllvmpipe, libgallium],
),
suite : ['llvmpipe'],
should_fail : meson.get_cross_property('xfail', '').contains(t),
should_fail : meson.get_external_property('xfail', '').contains(t),
timeout: 240,
)
endforeach

View File

@ -39,7 +39,7 @@ foreach t : ['pipe_barrier_test', 'u_cache_test', 'u_half_test',
endif
elif t != 'u_cache_test' # u_cache_test is slow
test(t, exe, suite: 'gallium',
should_fail : meson.get_cross_property('xfail', '').contains(t),
should_fail : meson.get_external_property('xfail', '').contains(t),
)
endif
endforeach

View File

@ -7,6 +7,6 @@ foreach t : ['srgb', 'u_format_test', 'u_format_compatible_test']
dependencies : idep_mesautil,
),
suite : 'format',
should_fail : meson.get_cross_property('xfail', '').contains(t),
should_fail : meson.get_external_property('xfail', '').contains(t),
)
endforeach