aboutsummaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2016-11-13 16:16:09 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2016-11-13 16:50:09 +0530
commit0f92b7d97cb9a791cad91bf5723cf5e90dcf571e (patch)
tree3e26d64ed375de99e1df2b33062dfa00bac48072 /test cases
parent954038b7c1ea1df44a948b766dcee4b67cd14fd5 (diff)
downloadmeson-0f92b7d97cb9a791cad91bf5723cf5e90dcf571e.zip
meson-0f92b7d97cb9a791cad91bf5723cf5e90dcf571e.tar.gz
meson-0f92b7d97cb9a791cad91bf5723cf5e90dcf571e.tar.bz2
tests/4 qt: Test that invalid modules are not found
Diffstat (limited to 'test cases')
-rw-r--r--test cases/frameworks/4 qt/meson.build11
1 files changed, 11 insertions, 0 deletions
diff --git a/test cases/frameworks/4 qt/meson.build b/test cases/frameworks/4 qt/meson.build
index 3d727a4..013f14d 100644
--- a/test cases/frameworks/4 qt/meson.build
+++ b/test cases/frameworks/4 qt/meson.build
@@ -6,6 +6,17 @@ foreach qt : ['qt4', 'qt5']
if qt == 'qt5'
qt_modules += qt5_modules
endif
+ # Test that invalid modules are indeed not found
+ fakeqtdep = dependency(qt, modules : ['DefinitelyNotFound'], required : false)
+ if fakeqtdep.found()
+ error('Invalid qt dep incorrectly found!')
+ endif
+ # Test that partially-invalid modules are indeed not found
+ fakeqtdep = dependency(qt, modules : ['Core', 'DefinitelyNotFound'], required : false)
+ if fakeqtdep.found()
+ error('Invalid qt dep incorrectly found!')
+ endif
+ # If qt4 modules are found, test that. qt5 is required.
qtdep = dependency(qt, modules : qt_modules, required : qt == 'qt5')
if qtdep.found()
qtmodule = import(qt)