if (arg_output_dir)
{
- GFile *file = g_file_new_for_commandline_arg (arg_output_dir);
+ GFile *arg_file = g_file_new_for_commandline_arg (arg_output_dir);
const char *subdir;
subdir = g_getenv ("TEST_OUTPUT_SUBDIR");
if (subdir)
{
- GFile *child = g_file_get_child (file, subdir);
- g_object_unref (file);
- file = child;
+ GFile *child = g_file_get_child (arg_file, subdir);
+ g_object_unref (arg_file);
+ arg_file = child;
}
- output_dir = g_file_get_path (file);
- g_object_unref (file);
+ output_dir = g_file_get_path (arg_file);
+ g_object_unref (arg_file);
}
else
{
return output_dir;
}
-char *
+static char *
file_replace_extension (const char *old_file,
const char *old_ext,
const char *new_ext)
/* Load the render node from the given .node file */
{
GBytes *bytes;
- GError *error = NULL;
gsize len;
char *contents;
'compare-render',
['compare-render.c', 'reftest-compare.c'],
dependencies: libgtk_dep,
+ c_args: common_cflags,
install: get_option('install-tests'),
install_dir: testexecdir
)
'node-parser',
['node-parser.c'],
dependencies: libgtk_dep,
+ c_args: common_cflags,
install: get_option('install-tests'),
install_dir: testexecdir
)