summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorClaudio Fontana2020-09-09 16:37:46 +0200
committerPaolo Bonzini2020-09-30 19:09:19 +0200
commit8a5701e54a1f6a355072751e40c0ef440a4402b3 (patch)
treeac905afc641aafd1f77b724ebe57d63ab95672fd /tests
parentMerge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging (diff)
downloadqemu-8a5701e54a1f6a355072751e40c0ef440a4402b3.tar.gz
qemu-8a5701e54a1f6a355072751e40c0ef440a4402b3.tar.xz
qemu-8a5701e54a1f6a355072751e40c0ef440a4402b3.zip
tests: add missing genh dependency
Fix high-parallelism builds by forcing all generated headers to be created before tests are compiled. Reported-by: Claudio Fontana <cfontana@suse.de> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Tested-by: Claudio Fontana <cfontana@suse.de> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/meson.build4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/meson.build b/tests/meson.build
index 04072a64ca..8b99e23545 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -56,7 +56,7 @@ test_qapi_files = custom_target('Test QAPI files',
# perhaps change qapi_gen to replace / with _, like Meson itself does?
subdir('include')
-libtestqapi = static_library('testqapi', sources: [test_qapi_files, test_qapi_outputs_extra])
+libtestqapi = static_library('testqapi', sources: [test_qapi_files, genh, test_qapi_outputs_extra])
testqapi = declare_dependency(link_with: libtestqapi)
testblock = declare_dependency(dependencies: [block], sources: 'iothread.c')
@@ -232,7 +232,7 @@ foreach test_name, extra: tests
src += test_ss.all_sources()
deps += test_ss.all_dependencies()
endif
- exe = executable(test_name, src, dependencies: deps)
+ exe = executable(test_name, src, genh, dependencies: deps)
test(test_name, exe,
depends: test_deps.get(test_name, []),