mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
Rename G_TEST_DISTED to G_TEST_DIST
Since this feature is so utterly automake-centric, we may as well be using the same terminology as automake itself (ie: although it's BUILT_SOURCES, it's DIST_EXTRA, not DISTED). Also add some comments to the enum explaining that these terms are really corresponding directly to the automake terms. https://bugzilla.gnome.org/show_bug.cgi?id=549783
This commit is contained in:
@@ -2257,7 +2257,7 @@ main (int argc, char *argv[])
|
||||
|
||||
backend_set = g_getenv ("GSETTINGS_BACKEND") != NULL;
|
||||
|
||||
g_setenv ("XDG_DATA_DIRS", g_test_get_dir (G_TEST_DISTED), TRUE);
|
||||
g_setenv ("XDG_DATA_DIRS", g_test_get_dir (G_TEST_DIST), TRUE);
|
||||
g_setenv ("GSETTINGS_SCHEMA_DIR", ".", TRUE);
|
||||
|
||||
if (!backend_set)
|
||||
@@ -2269,7 +2269,7 @@ main (int argc, char *argv[])
|
||||
glib_mkenums = "glib-mkenums";
|
||||
|
||||
cmdline = g_strdup_printf ("%s --template %s/enums.xml.template %s/testenum.h", glib_mkenums,
|
||||
g_test_get_dir (G_TEST_DISTED), g_test_get_dir (G_TEST_DISTED));
|
||||
g_test_get_dir (G_TEST_DIST), g_test_get_dir (G_TEST_DIST));
|
||||
|
||||
g_assert (g_spawn_command_line_sync (cmdline, &enums, NULL, &result, NULL));
|
||||
g_assert (result == 0);
|
||||
@@ -2283,7 +2283,7 @@ main (int argc, char *argv[])
|
||||
else
|
||||
glib_compile_schemas = "glib-compile-schemas";
|
||||
|
||||
cmdline = g_strdup_printf ("%s --targetdir=. --schema-file=org.gtk.test.enums.xml --schema-file=%s/org.gtk.test.gschema.xml", glib_compile_schemas, g_test_get_dir (G_TEST_DISTED));
|
||||
cmdline = g_strdup_printf ("%s --targetdir=. --schema-file=org.gtk.test.enums.xml --schema-file=%s/org.gtk.test.gschema.xml", glib_compile_schemas, g_test_get_dir (G_TEST_DIST));
|
||||
g_assert (g_spawn_command_line_sync (cmdline, NULL, NULL, &result, NULL));
|
||||
g_assert (result == 0);
|
||||
g_free (cmdline);
|
||||
@@ -2291,7 +2291,7 @@ main (int argc, char *argv[])
|
||||
g_mkdir ("schema-source", 0777);
|
||||
g_remove ("schema-source/gschemas.compiled");
|
||||
|
||||
cmdline = g_strdup_printf ("%s --targetdir=schema-source --schema-file=%s/org.gtk.schemasourcecheck.gschema.xml", glib_compile_schemas, g_test_get_dir (G_TEST_DISTED));
|
||||
cmdline = g_strdup_printf ("%s --targetdir=schema-source --schema-file=%s/org.gtk.schemasourcecheck.gschema.xml", glib_compile_schemas, g_test_get_dir (G_TEST_DIST));
|
||||
g_assert (g_spawn_command_line_sync (cmdline, NULL, NULL, &result, NULL));
|
||||
g_assert (result == 0);
|
||||
g_free (cmdline);
|
||||
|
Reference in New Issue
Block a user