From e4bbc630b67ef97ad842badd00855e64cff12e13 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Mon, 1 Jan 2024 22:45:10 -0500 Subject: 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. --- test cases/java/9 jni/meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test cases/java/9 jni/meson.build b/test cases/java/9 jni/meson.build index 7a6816591..a4051ad28 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') -- cgit v1.2.3