[tepl] FileMetadata unit tests: small code simplification
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tepl] FileMetadata unit tests: small code simplification
- Date: Sat, 18 Apr 2020 17:16:29 +0000 (UTC)
commit 65dbac8fa01633632d5ee618f3ccc7763fe430d7
Author: Sébastien Wilmet <swilmet gnome org>
Date: Thu Apr 9 15:44:59 2020 +0200
FileMetadata unit tests: small code simplification
testsuite/test-file-metadata.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/testsuite/test-file-metadata.c b/testsuite/test-file-metadata.c
index 6472cc6..f5d9593 100644
--- a/testsuite/test-file-metadata.c
+++ b/testsuite/test-file-metadata.c
@@ -179,15 +179,10 @@ static void
check_round_trip (const gchar *key,
const gchar *value)
{
- gchar *path;
GFile *location;
- path = g_build_filename (g_get_tmp_dir (), "tepl-file-metadata-test", NULL);
- location = g_file_new_for_path (path);
-
+ location = g_file_new_build_filename (g_get_tmp_dir (), "tepl-file-metadata-test", NULL);
check_round_trip_full (location, FALSE, key, value);
-
- g_free (path);
g_object_unref (location);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]