diff options
| author | Marvin Scholz <epirat07@gmail.com> | 2023-10-03 21:59:07 +0200 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2023-10-04 08:15:42 -0400 |
| commit | 00007e197ef7fa2c83fe8dcd4b9084afa5a7bb55 (patch) | |
| tree | de94d8fa494cbfd1e9e03ecd28d66550aed50478 /test cases/common | |
| parent | dec4f72da465b37414216aae12ee6d9ce7cbf079 (diff) | |
| download | meson-00007e197ef7fa2c83fe8dcd4b9084afa5a7bb55.tar.gz | |
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
Diffstat (limited to 'test cases/common')
| -rw-r--r-- | test cases/common/132 get define/meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
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() |
