meson: use "_" as separator in test names

Follow-up for ca121e20c4.

Fixes #17568.
This commit is contained in:
Yu Watanabe 2020-11-13 15:55:54 +09:00
parent 77419ba463
commit d448888924
1 changed files with 2 additions and 1 deletions

View 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,