glib/tests/meson.build: remove identical build targets

If no error with -Werror=sign-conversion, the resulting object file
does not differ from compilation without -Werror=sign-conversion.
So the -Werror argument is now applied directly to string.c and testing.c.
Finally, the currently specific -Werror targets string-macro and
testing-macro are removed.
This commit is contained in:
Hannes Müller 2023-10-10 11:16:25 +02:00
parent e93e1cb547
commit 5a1300db0a

View File

@ -127,23 +127,14 @@ glib_tests = {
'extra_programs' : host_machine.system() == 'windows' ? ['spawn-test-win32-gui'] : [],
},
'strfuncs' : {},
'string' : {},
'string-macro' : {
'source' : 'string.c',
'string' : {
'c_args' : cc.get_id() == 'gcc' ? ['-Werror=sign-conversion'] : [],
'install' : false,
},
'strvbuilder' : {},
'testing' : {
'args': [ '--verbose' ],
'extra_programs' : ['testing-helper'],
},
'testing-macro' : {
'args': [ '--verbose' ],
'extra_programs' : ['testing-helper'],
'source' : 'testing.c',
'c_args' : cc.get_id() == 'gcc' ? ['-Werror=sign-conversion'] : [],
'install' : false,
},
'test-printf' : {},
'thread' : {},