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:
Ryan Lortie
2013-05-28 14:24:47 -04:00
parent 575a9da718
commit 17ded322c5
12 changed files with 56 additions and 145 deletions

View File

@@ -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;