aboutsummaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2016-11-08 18:00:36 +0530
committerJussi Pakkanen <jpakkane@gmail.com>2016-11-12 13:28:25 -0500
commit4cdd22f0944d46e6759be93cd4310e23ee94dd2e (patch)
treeccf20b51dcc0e1a5ff8838caa4bd57aa0b2d2fa1 /test cases
parent05e217caa5a2bbb048e7d8d0c2231fc30562f44e (diff)
downloadmeson-4cdd22f0944d46e6759be93cd4310e23ee94dd2e.zip
meson-4cdd22f0944d46e6759be93cd4310e23ee94dd2e.tar.gz
meson-4cdd22f0944d46e6759be93cd4310e23ee94dd2e.tar.bz2
tests: Optional fallback subprojects can fail
Tests https://github.com/mesonbuild/meson/issues/975
Diffstat (limited to 'test cases')
-rw-r--r--test cases/common/95 dep fallback/meson.build1
-rw-r--r--test cases/common/95 dep fallback/subprojects/dummylib/meson.build4
2 files changed, 5 insertions, 0 deletions
diff --git a/test cases/common/95 dep fallback/meson.build b/test cases/common/95 dep fallback/meson.build
index 13541f2..212c64f 100644
--- a/test cases/common/95 dep fallback/meson.build
+++ b/test cases/common/95 dep fallback/meson.build
@@ -5,6 +5,7 @@ if not bob.found()
error('Bob is actually needed')
endif
jimmy = dependency('jimmylib', fallback : ['jimmylib', 'jimmy_dep'], required: false)
+dummy = dependency('dummylib', fallback : ['dummylib', 'dummy_dep'], required: false)
gensrc_py = find_program('gensrc.py')
gensrc = custom_target('gensrc.c',
diff --git a/test cases/common/95 dep fallback/subprojects/dummylib/meson.build b/test cases/common/95 dep fallback/subprojects/dummylib/meson.build
new file mode 100644
index 0000000..3ad33e7
--- /dev/null
+++ b/test cases/common/95 dep fallback/subprojects/dummylib/meson.build
@@ -0,0 +1,4 @@
+project('dummylib', 'c')
+
+dummy_dep = declare_dependency()
+error('this subproject fails to configure')