diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-04-17 17:57:58 +0200 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2025-04-18 15:38:56 -0400 |
| commit | b9db06b2b12a50b95185082910cfef01341fd7db (patch) | |
| tree | f2a4b9629406099db07f5b73a0274ab824d25237 /test cases/unit | |
| parent | 855cf199fc950de3e764a74e7b545c2213aa601c (diff) | |
| download | meson-b9db06b2b12a50b95185082910cfef01341fd7db.tar.gz | |
fix prefix computation in validate_original_args
validate_original_args only checks whether an option is prefixed with the name of a
built-in option that was also set. It does not check whether the prefix is the full
name of the option specified with -D. Adding an "=" at the end fixes the test.
Fixes: #14487
Reported-by: Alyssa Ross <hi@alyssa.is>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'test cases/unit')
| -rw-r--r-- | test cases/unit/128 long opt vs D/meson.build | 1 | ||||
| -rw-r--r-- | test cases/unit/128 long opt vs D/meson_options.txt | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/test cases/unit/128 long opt vs D/meson.build b/test cases/unit/128 long opt vs D/meson.build new file mode 100644 index 000000000..e05d88d20 --- /dev/null +++ b/test cases/unit/128 long opt vs D/meson.build @@ -0,0 +1 @@ +project('empty test') diff --git a/test cases/unit/128 long opt vs D/meson_options.txt b/test cases/unit/128 long opt vs D/meson_options.txt new file mode 100644 index 000000000..255bf1576 --- /dev/null +++ b/test cases/unit/128 long opt vs D/meson_options.txt @@ -0,0 +1 @@ +option('sysconfdir2', type: 'string', value: '') |
