summaryrefslogtreecommitdiff
path: root/test cases/unit
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2018-04-12 02:41:33 +0530
committerJussi Pakkanen <jpakkane@gmail.com>2018-04-21 16:10:03 +0300
commitfc5e8dfcdae11d23469fd01d878c7c9c30d67d30 (patch)
treeee863f6d18e0d95fa08d042647613a2ff9842fc2 /test cases/unit
parent2993eaf8844cfc04800ac22ab4012c8ee6f87b0e (diff)
downloadmeson-fc5e8dfcdae11d23469fd01d878c7c9c30d67d30.tar.gz
Don't fail on not-required not-found deps in forcefallback mode
This involves the creation of a new dummy NotFoundDependency.
Diffstat (limited to 'test cases/unit')
-rw-r--r--test cases/unit/27 forcefallback/meson.build3
1 files changed, 2 insertions, 1 deletions
diff --git a/test cases/unit/27 forcefallback/meson.build b/test cases/unit/27 forcefallback/meson.build
index e6a90eae5..d5c06c342 100644
--- a/test cases/unit/27 forcefallback/meson.build
+++ b/test cases/unit/27 forcefallback/meson.build
@@ -2,7 +2,8 @@ project('mainproj', 'c',
default_options : ['wrap_mode=forcefallback'])
zlib_dep = dependency('zlib', fallback: ['notzlib', 'zlib_dep'])
+notfound_dep = dependency('cannotabletofind', fallback: ['definitelynotfound', 'some_var'], required : false)
-test_not_zlib = executable('test_not_zlib', ['test_not_zlib.c'], dependencies: [zlib_dep])
+test_not_zlib = executable('test_not_zlib', ['test_not_zlib.c'], dependencies: [zlib_dep, notfound_dep])
test('test_not_zlib', test_not_zlib)