aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/failing/106 feature require
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/failing/106 feature require')
-rw-r--r--meson/test cases/failing/106 feature require/meson.build2
-rw-r--r--meson/test cases/failing/106 feature require/meson_options.txt2
-rw-r--r--meson/test cases/failing/106 feature require/test.json8
3 files changed, 12 insertions, 0 deletions
diff --git a/meson/test cases/failing/106 feature require/meson.build b/meson/test cases/failing/106 feature require/meson.build
new file mode 100644
index 000000000..d976ae8d6
--- /dev/null
+++ b/meson/test cases/failing/106 feature require/meson.build
@@ -0,0 +1,2 @@
+project('no fallback', 'c')
+foo = get_option('reqfeature').require(false, error_message: 'frobnicator not available')
diff --git a/meson/test cases/failing/106 feature require/meson_options.txt b/meson/test cases/failing/106 feature require/meson_options.txt
new file mode 100644
index 000000000..d6f2ce656
--- /dev/null
+++ b/meson/test cases/failing/106 feature require/meson_options.txt
@@ -0,0 +1,2 @@
+option('reqfeature', type : 'feature', value : 'enabled', description : 'A required feature')
+
diff --git a/meson/test cases/failing/106 feature require/test.json b/meson/test cases/failing/106 feature require/test.json
new file mode 100644
index 000000000..7c4640de0
--- /dev/null
+++ b/meson/test cases/failing/106 feature require/test.json
@@ -0,0 +1,8 @@
+{
+ "stdout": [
+ {
+ "match": "re",
+ "line": ".*/meson\\.build:2:0: ERROR: Feature reqfeature cannot be enabled: frobnicator not available"
+ }
+ ]
+}