Commit 723b393b authored by Sam Thursfield's avatar Sam Thursfield

tests: Fix invalid call to tracker_getline in libtracker-extract test

The test passes when used with glibc's getline(), but the fallback
implementation we ship will return EINVAL if the size pointer is not set
to zero before the call. The man page suggests that this is valid
behaviour for a getline() implementation, so let's fix the test.
parent 323dd214
......@@ -263,7 +263,7 @@ test_getline (void)
FILE *f;
gchar *line = NULL;
gsize n;
gsize n = 0;
f = fopen (TOP_SRCDIR "/tests/libtracker-extract/getline-test.txt", "r");
g_assert_cmpint (tracker_getline (&line, &n, f), >, 0);
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