Commit b70c51bc authored by Jürg Billeter's avatar Jürg Billeter

tests/libtracker-extract: Fix tests when srcdir != builddir

parent e67da036
......@@ -28,7 +28,7 @@ test_exif_parse ()
gsize length;
g_assert (g_file_get_contents ("./exif-img.jpg", &blob, &length, NULL));
g_assert (g_file_get_contents (TOP_SRCDIR "/tests/libtracker-extract/exif-img.jpg", &blob, &length, NULL));
exif = tracker_exif_new (blob, length, "test://file");
......@@ -74,7 +74,7 @@ test_exif_parse_empty ()
gchar *blob;
gsize length;
g_assert (g_file_get_contents ("./exif-free-img.jpg", &blob, &length, NULL));
g_assert (g_file_get_contents (TOP_SRCDIR "/tests/libtracker-extract/exif-free-img.jpg", &blob, &length, NULL));
exif = tracker_exif_new (blob, length, "test://file");
......
......@@ -122,7 +122,7 @@ test_guarantee_date ()
#ifdef GUARANTEE_METADATA
f = g_file_new_for_path ("./guarantee-mtime-test.txt");
f = g_file_new_for_path (TOP_SRCDIR "/tests/libtracker-extract/guarantee-mtime-test.txt");
uri = g_file_get_uri (f);
internal_test_date (uri, NULL);
......
......@@ -132,7 +132,7 @@ test_iptc_extraction ()
{
TrackerIptcData *data;
data = load_iptc_blob ("./iptc-img.jpg");
data = load_iptc_blob (TOP_SRCDIR "/tests/libtracker-extract/iptc-img.jpg");
g_assert (data);
g_assert_cmpstr (data->keywords, ==, "Coverage, test");
......
......@@ -247,7 +247,7 @@ test_getline ()
gchar *line = NULL;
gsize n;
f = fopen ("./getline-test.txt", "r");
f = fopen (TOP_SRCDIR "/tests/libtracker-extract/getline-test.txt", "r");
g_assert_cmpint (tracker_getline (&line, &n, f), >, 0);
g_assert_cmpstr (line, ==, "Line 1\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment