mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-05 00:43:40 +02:00
tests: move tests to new _get_filename() API
This API was introduced to save a few lines of code here and there, so let's start by removing a bunch from our own tests. https://bugzilla.gnome.org/show_bug.cgi?id=549783
This commit is contained in:
@@ -465,11 +465,8 @@ test_file_icon (void)
|
||||
GError *error;
|
||||
GInputStream *stream;
|
||||
gchar *str;
|
||||
gchar *path;
|
||||
|
||||
path = g_test_build_filename (G_TEST_DISTED, "g-icon.c", NULL);
|
||||
|
||||
file = g_file_new_for_path (path);
|
||||
file = g_file_new_for_path (g_test_get_filename (G_TEST_DISTED, "g-icon.c", NULL));
|
||||
icon = g_file_icon_new (file);
|
||||
g_object_unref (file);
|
||||
|
||||
@@ -487,8 +484,6 @@ test_file_icon (void)
|
||||
|
||||
g_object_unref (icon);
|
||||
g_object_unref (icon2);
|
||||
|
||||
g_free (path);
|
||||
}
|
||||
|
||||
int
|
||||
|
Reference in New Issue
Block a user