Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dab83a6

Browse files
committed
meson: Improve dependencies for tmp_install test target
The missing dependency was, e.g., visible when doing ninja clean && ninja meson-test-prereq && meson test --no-rebuild --suite setup --suite cube because meson (and thus its internal meson-test-prereq target) did not know about a lot of the required targets. Previously tmp_install did not actually depend on the relevant files being built. That was mostly not visible, because "meson test" currently uses the 'default' targets as a test's dependency if no dependency is specified. However, there are plans to narrow that on the meson side, to make it quicker to run tests. Apply this to all branches with meson support, as part of an effort to fix incorrect test dependencies that can lead to test failures. Discussion: https://postgr.es/m/CAGECzQSvM3iSDmjF+=Kof5an6jN8UbkP_4cKKT9w6GZavmb5yQ@mail.gmail.com Discussion: https://postgr.es/m/[email protected] Backpatch: 16-, where meson support was added
1 parent 8062093 commit dab83a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3190,6 +3190,7 @@ test('tmp_install',
31903190
priority: setup_tests_priority,
31913191
timeout: 300,
31923192
is_parallel: false,
3193+
depends: installed_targets,
31933194
suite: ['setup'])
31943195

31953196
test('install_test_files',

0 commit comments

Comments
 (0)