summaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2025-05-09 11:44:36 +0200
committerEli Schwartz <eschwartz93@gmail.com>2025-05-15 02:05:18 -0400
commit5081536f5764cfa8f6ce9cd7a5e43595b8b0f50d (patch)
tree2587376d6509a68b38e0a116c91fc50f1a0992a5 /test cases
parent2f6fc30df10583c77dc1318f2fb62111de3e121c (diff)
downloadmeson-5081536f5764cfa8f6ce9cd7a5e43595b8b0f50d.tar.gz
add test case for setting options from reconfigure
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'test cases')
-rw-r--r--test cases/common/40 options/meson.build3
1 files changed, 1 insertions, 2 deletions
diff --git a/test cases/common/40 options/meson.build b/test cases/common/40 options/meson.build
index 3849d54ea..f41265af7 100644
--- a/test cases/common/40 options/meson.build
+++ b/test cases/common/40 options/meson.build
@@ -40,8 +40,7 @@ if get_option('integer_opt') != 3
endif
negint = get_option('neg_int_opt')
-
-if negint != -3 and negint != -10
+if negint not in [-2, -3, -10]
error('Incorrect value @0@ in negative integer option.'.format(negint))
endif