From 00007e197ef7fa2c83fe8dcd4b9084afa5a7bb55 Mon Sep 17 00:00:00 2001 From: Marvin Scholz Date: Tue, 3 Oct 2023 21:59:07 +0200 Subject: test: get_define: do not use assert incorrectly This should be an error, not an assert as it asserts nothing, in fact, if this wouldn't error out because of the wrong type passed to the assert, it would even do the wrong thing. Follow-up to #12223 --- test cases/common/132 get define/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test cases/common') diff --git a/test cases/common/132 get define/meson.build b/test cases/common/132 get define/meson.build index 019b17afc..66ac3f9eb 100644 --- a/test cases/common/132 get define/meson.build +++ b/test cases/common/132 get define/meson.build @@ -43,7 +43,7 @@ foreach lang : ['c', 'cpp'] elif system_define.length() == 1 assert(def_val != '', '@0@ value is unset'.format(def_name)) else - assert('Invalid number of items in system_define array, this is a bug in the test!') + error('Invalid number of items in system_define array, this is a bug in the test!') endif if cc.find_library('z', required : false).found() -- cgit v1.2.3