mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-02 17:26:17 +01:00
tests: Re-indent block in resources test
It was slightly over-indented. Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
parent
8b13f8854a
commit
f1c639c7dc
@ -1021,26 +1021,26 @@ test_overlay (void)
|
|||||||
{
|
{
|
||||||
if (g_test_subprocess ())
|
if (g_test_subprocess ())
|
||||||
{
|
{
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
gboolean res;
|
gboolean res;
|
||||||
gsize size;
|
gsize size;
|
||||||
char *overlay;
|
char *overlay;
|
||||||
char *path;
|
char *path;
|
||||||
|
|
||||||
path = g_test_build_filename (G_TEST_DIST, "test1.overlay", NULL);
|
path = g_test_build_filename (G_TEST_DIST, "test1.overlay", NULL);
|
||||||
overlay = g_strconcat ("/auto_loaded/test1.txt=", path, NULL);
|
overlay = g_strconcat ("/auto_loaded/test1.txt=", path, NULL);
|
||||||
|
|
||||||
g_setenv ("G_RESOURCE_OVERLAYS", overlay, TRUE);
|
g_setenv ("G_RESOURCE_OVERLAYS", overlay, TRUE);
|
||||||
res = g_resources_get_info ("/auto_loaded/test1.txt", 0, &size, NULL, &error);
|
res = g_resources_get_info ("/auto_loaded/test1.txt", 0, &size, NULL, &error);
|
||||||
g_assert_true (res);
|
g_assert_true (res);
|
||||||
g_assert_no_error (error);
|
g_assert_no_error (error);
|
||||||
/* test1.txt is 6 bytes, test1.overlay is 23 */
|
/* test1.txt is 6 bytes, test1.overlay is 23 */
|
||||||
g_assert_cmpint (size, ==, 23);
|
g_assert_cmpint (size, ==, 23);
|
||||||
|
|
||||||
g_free (overlay);
|
g_free (overlay);
|
||||||
g_free (path);
|
g_free (path);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
g_test_trap_subprocess (NULL, 0, G_TEST_SUBPROCESS_INHERIT_STDERR);
|
g_test_trap_subprocess (NULL, 0, G_TEST_SUBPROCESS_INHERIT_STDERR);
|
||||||
g_test_trap_assert_passed ();
|
g_test_trap_assert_passed ();
|
||||||
|
Loading…
Reference in New Issue
Block a user