[tracker/tracker-0.16] libtracker-data: Fix unit tests for localtime/timezone functions
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.16] libtracker-data: Fix unit tests for localtime/timezone functions
- Date: Wed, 1 May 2013 12:02:13 +0000 (UTC)
commit 2aab8ce22d9f6d3dc1af89ebc4ba6b9fe98b5d1c
Author: Martyn Russell <martyn lanedo com>
Date: Wed May 1 12:24:39 2013 +0100
libtracker-data: Fix unit tests for localtime/timezone functions
The insert order != query order and the query has no ORDER BY. So it's not
guaranteed anyway, but the diff expects an order. So this patch adds ORDER BY
to ensure the diff doesn't fail due to ordering but only lack of content
expected.
.../datetime/functions-localtime-1.rq | 1 +
.../datetime/functions-timezone-1.rq | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tests/libtracker-data/datetime/functions-localtime-1.rq
b/tests/libtracker-data/datetime/functions-localtime-1.rq
index 6822e1f..8b63d5e 100644
--- a/tests/libtracker-data/datetime/functions-localtime-1.rq
+++ b/tests/libtracker-data/datetime/functions-localtime-1.rq
@@ -3,3 +3,4 @@ WHERE {
?s a example:A ;
example:p ?v
}
+ORDER BY ASC(?s)
diff --git a/tests/libtracker-data/datetime/functions-timezone-1.rq
b/tests/libtracker-data/datetime/functions-timezone-1.rq
index 1cdf8f3..6cd499f 100644
--- a/tests/libtracker-data/datetime/functions-timezone-1.rq
+++ b/tests/libtracker-data/datetime/functions-timezone-1.rq
@@ -3,3 +3,4 @@ WHERE {
?s a example:A ;
example:p ?v
}
+ORDER BY ASC(?s)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]