diff options
author | 2023-10-10 14:33:42 +0000 | |
---|---|---|
committer | 2023-10-10 14:33:42 +0000 | |
commit | af1a266670d040d2f4083ff309d732d648afba2a (patch) | |
tree | 2fc46203448ddcc6f81546d379abfaeb323575e9 /meson/test cases/failing/106 feature require | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'meson/test cases/failing/106 feature require')
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" + } + ] +} |