]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: use "_" as separator in test names
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 13 Nov 2020 06:55:54 +0000 (15:55 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 16 Nov 2020 12:28:05 +0000 (21:28 +0900)
Follow-up for ca121e20c42219e3bc4e5cb63dcc96cc5eae2879.

Fixes #17568.

src/systemd/meson.build

index 088dd432f01d125fca2d804e0037ff1b216a805a..4f578091076b6fcaa32ac5a17273aaeeaba6c5d8 100644 (file)
@@ -68,7 +68,8 @@ endif
 
 foreach header : _systemd_headers + _not_installed_headers + ['../libudev/libudev.h']
         foreach opt : opts
-                name = ''.join(['cc-', header.split('/')[-1], '_'] + opt)
+                std_name = opt.length() == 2 ? '_'.join(opt[1].split(':')) : ''
+                name = ''.join(['cc-', header.split('/')[-1], '_', opt[0], std_name])
                 if want_tests != 'false'
                         test(name,
                              check_compilation_sh,