Add a test for the broken cached version compare

https://github.com/mesonbuild/meson/pull/610
pull/610/head
Nirbheek Chauhan 9 years ago
parent fe52feb47d
commit a927380098
  1. 4
      test cases/linuxlike/5 dependency versions/meson.build

@ -9,6 +9,10 @@ assert(zlib.version() == zlibver.version(), 'zlib versions did not match!')
zlibver = dependency('zlib', version : '<1.0', required : false)
assert(zlibver.found() == false, 'zlib <1.0 should not be found!')
# Test https://github.com/mesonbuild/meson/pull/610
dependency('somebrokenlib', version : '>=2.0', required : false)
dependency('somebrokenlib', version : '>=1.0', required : false)
# Find internal dependency without version
somelibver = dependency('somelib',
fallback : ['somelibnover', 'some_dep'])

Loading…
Cancel
Save