summaryrefslogtreecommitdiff
path: root/test cases/unit
diff options
context:
space:
mode:
authorCharles Brunet <charles.brunet@optelgroup.com>2023-09-06 15:51:20 -0400
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2023-09-12 17:31:32 +0530
commit57178e8ae7f6fc7bc898e55fed1a18d32d25c2ce (patch)
tree09dd90d827eb749ff873556ca697955c804d50da /test cases/unit
parentbd3341f8085686863cb1160f2ab72e6fd6bf47c7 (diff)
downloadmeson-57178e8ae7f6fc7bc898e55fed1a18d32d25c2ce.tar.gz
fix bug with openssl when cmake is missing
Fixes #12098 DependencyFactory was returning a lambda, but it has no log_tried() function
Diffstat (limited to 'test cases/unit')
-rw-r--r--test cases/unit/117 openssl cmake bug/meson.build5
-rw-r--r--test cases/unit/117 openssl cmake bug/nativefile.ini7
2 files changed, 12 insertions, 0 deletions
diff --git a/test cases/unit/117 openssl cmake bug/meson.build b/test cases/unit/117 openssl cmake bug/meson.build
new file mode 100644
index 000000000..d08a8ef42
--- /dev/null
+++ b/test cases/unit/117 openssl cmake bug/meson.build
@@ -0,0 +1,5 @@
+project('bug', 'cpp')
+
+# When cmake is not available,
+# this triggers the bug described in #12098
+openssl_dep = dependency('openssl')
diff --git a/test cases/unit/117 openssl cmake bug/nativefile.ini b/test cases/unit/117 openssl cmake bug/nativefile.ini
new file mode 100644
index 000000000..dd6b0ff29
--- /dev/null
+++ b/test cases/unit/117 openssl cmake bug/nativefile.ini
@@ -0,0 +1,7 @@
+[binaries]
+
+cmake = '/path/to/nothing'
+
+[built-in options]
+
+pkg_config_path = '' \ No newline at end of file