summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2020-11-13 15:55:54 +0900
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-12-08 18:08:31 +0100
commit0f428f71c5e0148a3a0949a57f775f82c7a85f01 (patch)
tree56b74db27d72a3eb465515af5534e35d13e12898
parent3a7ff1964f99dc8abcadf01ded8326bbb3a20747 (diff)
downloadsystemd-0f428f71c5e0148a3a0949a57f775f82c7a85f01.tar.gz
meson: use "_" as separator in test names
Follow-up for ca121e20c42219e3bc4e5cb63dcc96cc5eae2879. Fixes #17568. (cherry picked from commit d448888924c1d4815cb97bcd5d94419812c053b9)
-rw-r--r--src/systemd/meson.build3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/systemd/meson.build b/src/systemd/meson.build
index be1b5047dc..deecdcd0fd 100644
--- a/src/systemd/meson.build
+++ b/src/systemd/meson.build
@@ -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,