57 'spawn-multithreaded',
78 if host_machine.system() != 'windows'
79 glib_tests += [ 'unix', 'include' ]
82 if cc.get_id() == 'gcc'
83 glib_tests += [ 'autoptr' ]
87 'G_TEST_SRCDIR=' + meson.current_source_dir(),
88 'G_TEST_BUILDDIR=' + meson.current_build_dir(),
91 foreach test_name : glib_tests
92 deps = [ libm, thread_dep ]
93 if test_name == 'regex'
96 exe = executable(test_name, '@0@.c'.format(test_name),
97 include_directories : inc_dirs,
98 c_args : [ '-DHAVE_CONFIG_H=1', '-DG_LOG_DOMAIN="GLib"' ],
103 test(test_name, exe, env : test_env)
107 if cc.get_id() == 'gcc'
108 c_args_atomic += [ '-Wstrict-aliasing=2' ]
111 exe = executable('atomic', 'atomic.c',
112 include_directories : inc_dirs,
113 c_args : [ '-DHAVE_CONFIG_H=1' ] + c_args_atomic,
117 test('atomic', exe, env : test_env)
119 # FIXME: consolidate all of these into the array
120 exe = executable('overflow-fallback', 'overflow.c',
121 include_directories : inc_dirs,
122 c_args : [ '-DHAVE_CONFIG_H=1', '-D_GLIB_TEST_OVERFLOW_FALLBACK' ],
127 test('overflow-fallback', exe, env : test_env)
129 exe = executable('642026-ec', '642026.c',
130 include_directories : inc_dirs,
131 c_args : [ '-DHAVE_CONFIG_H=1', '-DG_ERRORCHECK_MUTEXES' ],
136 test('642026-ec', exe, env : test_env)
138 exe = executable('1bit-emufutex', '1bit-mutex.c',
139 include_directories : inc_dirs,
140 c_args : [ '-DHAVE_CONFIG_H=1', '-DTEST_EMULATED_FUTEX' ],
145 test('1bit-emufutex', exe, env : test_env)
147 if glib_conf.has('HAVE_EVENTFD')
148 exe = executable('gwakeup-fallback', 'gwakeuptest.c', '../gwakeup.c',
149 include_directories : inc_dirs,
150 c_args : [ '-DHAVE_CONFIG_H=1', '-DTEST_EVENTFD_FALLBACK' ],
155 test('gwakeup-fallback', exe, env : test_env)
158 # test-spawn-echo helper binary required by the spawn tests
159 executable('test-spawn-echo', 'test-spawn-echo.c',
160 include_directories : inc_dirs,
161 c_args : [ '-DHAVE_CONFIG_H=1', '-DG_LOG_DOMAIN="GLib"' ],