mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-04 08:23:38 +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:
@@ -787,7 +787,7 @@ test_peer (void)
|
||||
gsize len;
|
||||
gchar *buf2;
|
||||
gsize len2;
|
||||
char *testfile = g_test_build_filename (G_TEST_DISTED, "file.c", NULL);
|
||||
const char *testfile = g_test_get_filename (G_TEST_DISTED, "file.c", NULL);
|
||||
|
||||
method_call_message = g_dbus_message_new_method_call (NULL, /* name */
|
||||
"/org/gtk/GDBus/PeerTestObject",
|
||||
@@ -830,7 +830,6 @@ test_peer (void)
|
||||
g_assert (memcmp (buf, buf2, len) == 0);
|
||||
g_free (buf2);
|
||||
g_free (buf);
|
||||
g_free (testfile);
|
||||
}
|
||||
#else
|
||||
error = NULL;
|
||||
|
Reference in New Issue
Block a user