summaryrefslogtreecommitdiff
path: root/json-glib/tests/parser-test.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@linux.intel.com>2010-08-02 17:45:35 +0100
committerEmmanuele Bassi <ebassi@linux.intel.com>2010-08-02 17:46:31 +0100
commit8a91b052fba48ae6f4a61115e2fa6839e7a21509 (patch)
tree2d5d5a9d530e93bddbf5d9916909ddae71b9759f /json-glib/tests/parser-test.c
parent2e3eaabd12829187f5a9ddacef68319442362729 (diff)
downloadjson-glib-8a91b052fba48ae6f4a61115e2fa6839e7a21509.tar.gz
build: Fix up the tests data path
Since we load up a test file from a directory, we should be using a path - otherwise this will break out-of-tree builds, e.g. when doing a distcheck.
Diffstat (limited to 'json-glib/tests/parser-test.c')
-rw-r--r--json-glib/tests/parser-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/json-glib/tests/parser-test.c b/json-glib/tests/parser-test.c
index 5baba0d..d3f2404 100644
--- a/json-glib/tests/parser-test.c
+++ b/json-glib/tests/parser-test.c
@@ -695,7 +695,7 @@ test_stream_sync (void)
parser = json_parser_new ();
- file = g_file_new_for_path ("stream-load.json");
+ file = g_file_new_for_path (TESTS_DATA_DIR "/stream-load.json");
stream = g_file_read (file, NULL, &error);
g_assert (error == NULL);
g_assert (stream != NULL);
@@ -740,7 +740,7 @@ test_stream_async (void)
GMainLoop *main_loop;
GError *error = NULL;
JsonParser *parser = json_parser_new ();
- GFile *file = g_file_new_for_path ("stream-load.json");
+ GFile *file = g_file_new_for_path (TESTS_DATA_DIR "/stream-load.json");
GFileInputStream *stream = g_file_read (file, NULL, &error);
g_assert (error == NULL);