aboutsummaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2024-01-01 22:45:10 -0500
committerDylan Baker <dylan@pnwbakers.com>2024-01-02 07:54:21 -0800
commite4bbc630b67ef97ad842badd00855e64cff12e13 (patch)
treebdc0f554d4e611671bd83cd7ab43f3fe2c6a8546 /test cases
parent8e366b87599f666eed865b27f7cf4732dbe6a565 (diff)
downloadmeson-e4bbc630b67ef97ad842badd00855e64cff12e13.zip
meson-e4bbc630b67ef97ad842badd00855e64cff12e13.tar.gz
meson-e4bbc630b67ef97ad842badd00855e64cff12e13.tar.bz2
tests: fix java JNI test assert for jni.h existing
compiler.has_header() isn't an assert, even though the comments say it is. With `required: true` it is an actual assert.
Diffstat (limited to 'test cases')
-rw-r--r--test cases/java/9 jni/meson.build4
1 files changed, 2 insertions, 2 deletions
diff --git a/test cases/java/9 jni/meson.build b/test cases/java/9 jni/meson.build
index 7a68165..a4051ad 100644
--- a/test cases/java/9 jni/meson.build
+++ b/test cases/java/9 jni/meson.build
@@ -17,9 +17,9 @@ java = find_program('java')
jni_dep = dependency('jni', version : '>=1.8', modules: ['jvm', 'awt'])
# Assert that the header can actually be found with the dependency.
-cc.has_header('jni.h', dependencies: [jni_dep])
+cc.has_header('jni.h', dependencies: [jni_dep], required: true)
# Assert that the platform-specific include directory is included in the compiler arguments.
-cc.has_header('jni_md.h', dependencies: [jni_dep])
+cc.has_header('jni_md.h', dependencies: [jni_dep], required: true)
# generate native headers
subdir('src')