]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: use "_" as separator in test names
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 11 Nov 2020 13:37:07 +0000 (14:37 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 11 Nov 2020 15:58:05 +0000 (16:58 +0100)
":" is prettier, but meson 0.56+ doesn't like it:
src/systemd/meson.build:73: DEPRECATION: ":" is not allowed in test name "cc-sd-bus.h:c", it has been replaced with "_"
src/systemd/meson.build:73: DEPRECATION: ":" is not allowed in test name "cc-sd-bus.h:c-ansi", it has been replaced with "_"
...

Fixes #17568.

src/systemd/meson.build

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