testsuite/css: Add common_cflags to build

And fix all the errors coming from that.
This commit is contained in:
Timm Bäder 2020-03-06 18:16:54 +01:00
parent 79c60bb7fd
commit 01bd7910ce
7 changed files with 8 additions and 2 deletions

View File

@ -4,6 +4,7 @@ testdatadir = join_paths(installed_test_datadir, 'css')
test_change = executable(
'test-css-change',
'test-css-change.c',
c_args: common_cflags,
dependencies: libgtk_dep,
install: get_option('install-tests'),
install_dir: testexecdir,

View File

@ -29,7 +29,7 @@
/* There shall be no other styles */
#define GTK_STYLE_PROVIDER_PRIORITY_FORCE G_MAXUINT
char *
static char *
test_get_other_file (const char *ui_file, const char *extension)
{
GString *file = g_string_new (NULL);

View File

@ -7,6 +7,7 @@ testexecdir = join_paths(installed_test_bindir, 'css')
testdatadir = join_paths(installed_test_datadir, 'css')
test_api = executable('api', 'api.c',
c_args: common_cflags,
dependencies: libgtk_dep,
install: get_option('install-tests'),
install_dir: testexecdir)
@ -23,6 +24,7 @@ test('api', test_api,
suite: 'css')
test_data = executable('data', ['data.c', '../../gtk/css/gtkcssdataurl.c'],
c_args: common_cflags,
include_directories: [confinc, ],
dependencies: gtk_deps,
install: get_option('install-tests'),

View File

@ -2,6 +2,7 @@ testexecdir = join_paths(installed_test_bindir, 'css', 'nodes')
testdatadir = join_paths(installed_test_datadir, 'css')
test_nodes = executable('test-css-nodes', 'test-css-nodes.c',
c_args: common_cflags,
install: get_option('install-tests'),
install_dir: testexecdir,
dependencies: libgtk_dep)

View File

@ -2,6 +2,7 @@ testexecdir = join_paths(installed_test_bindir, 'css', 'parser')
testdatadir = join_paths(installed_test_datadir, 'css')
test_parser = executable('test-css-parser', 'test-css-parser.c',
c_args: common_cflags,
install: get_option('install-tests'),
install_dir: testexecdir,
dependencies: libgtk_dep)

View File

@ -11,6 +11,7 @@ test_style = executable(
'test-css-style',
'test-css-style.c',
cssresources,
c_args: common_cflags,
dependencies: libgtk_dep,
install: get_option('install-tests'),
install_dir: testexecdir,

View File

@ -29,7 +29,7 @@
/* There shall be no other styles */
#define GTK_STYLE_PROVIDER_PRIORITY_FORCE G_MAXUINT
char *
static char *
test_get_other_file (const char *ui_file, const char *extension)
{
GString *file = g_string_new (NULL);