[tracker/tracker-0.10] tests: fix indentation in libtracker-extract/xmp functional tests
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.10] tests: fix indentation in libtracker-extract/xmp functional tests
- Date: Thu, 8 Sep 2011 16:13:52 +0000 (UTC)
commit 111900778cf08f3f84d06a11cc84ce9d5364c26f
Author: Aleksander Morgado <aleksander lanedo com>
Date: Thu Sep 8 16:09:10 2011 +0200
tests: fix indentation in libtracker-extract/xmp functional tests
tests/libtracker-extract/tracker-test-xmp.c | 50 ++++++++++++---------------
1 files changed, 22 insertions(+), 28 deletions(-)
---
diff --git a/tests/libtracker-extract/tracker-test-xmp.c b/tests/libtracker-extract/tracker-test-xmp.c
index eef7f82..216d07c 100644
--- a/tests/libtracker-extract/tracker-test-xmp.c
+++ b/tests/libtracker-extract/tracker-test-xmp.c
@@ -364,19 +364,19 @@ debug_print_sparql (TrackerXmpData *data)
static void
test_xmp_regions (void)
{
- TrackerXmpData *data;
- TrackerXmpRegion *region;
+ TrackerXmpData *data;
+ TrackerXmpRegion *region;
+
+ GFile *f;
+ gchar *contents;
+ gsize size;
+
+
- GFile *f;
- gchar *contents;
- gsize size;
- gchar *filepath;
- filepath = g_build_filename (TOP_SRCDIR, "tests", "libtracker-extract", "areas.xmp", NULL);
- f = g_file_new_for_path (filepath);
- g_assert (g_file_load_contents (f, NULL, &contents, &size, NULL, NULL));
+ f = g_file_new_for_path ("./areas.xmp");
+ g_assert(g_file_load_contents (f, NULL, &contents, &size, NULL, NULL));
g_object_unref (f);
- g_free (filepath);
data = tracker_xmp_new (contents, size, "test://file");
@@ -410,19 +410,16 @@ test_xmp_regions (void)
static void
test_xmp_regions_quill (void)
{
- TrackerXmpData *data;
+ TrackerXmpData *data;
TrackerXmpRegion *region;
- GFile *f;
- gchar *contents;
- gsize size;
- gchar *filepath;
+ GFile *f;
+ gchar *contents;
+ gsize size;
- filepath = g_build_filename (TOP_SRCDIR, "tests", "libtracker-extract", "areas-with-contacts.xmp", NULL);
- f = g_file_new_for_path (filepath);
- g_assert (g_file_load_contents (f, NULL, &contents, &size, NULL, NULL));
+ f = g_file_new_for_path ("./areas-with-contacts.xmp");
+ g_assert(g_file_load_contents (f, NULL, &contents, &size, NULL, NULL));
g_object_unref (f);
- g_free (filepath);
data = tracker_xmp_new (contents, size, "test://file");
@@ -456,19 +453,16 @@ test_xmp_regions_quill (void)
static void
test_xmp_regions_ns_prefix (void)
{
- TrackerXmpData *data;
- TrackerXmpRegion *region;
+ TrackerXmpData *data;
+ TrackerXmpRegion *region;
- GFile *f;
- gchar *contents;
- gsize size;
- gchar *filepath;
+ GFile *f;
+ gchar *contents;
+ gsize size;
- filepath = g_build_filename (TOP_SRCDIR, "tests", "libtracker-extract", "areas-ns.xmp", NULL);
- f = g_file_new_for_path (filepath);
+ f = g_file_new_for_path ("./areas-ns.xmp");
g_assert(g_file_load_contents (f, NULL, &contents, &size, NULL, NULL));
g_object_unref (f);
- g_free (filepath);
data = tracker_xmp_new (contents, size, "test://file");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]