[tracker] tests: Verify that tracker_priority_queue_peek can handle empty queues
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tests: Verify that tracker_priority_queue_peek can handle empty queues
- Date: Thu, 12 Sep 2013 18:04:19 +0000 (UTC)
commit 3dcbf4d01eb6409716bc19937076d01ce5e19655
Author: Jonatan PĂ„lsson <jonatan palsson pelagicore com>
Date: Thu Sep 12 10:28:08 2013 +0200
tests: Verify that tracker_priority_queue_peek can handle empty queues
.../libtracker-miner/tracker-priority-queue-test.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/tests/libtracker-miner/tracker-priority-queue-test.c
b/tests/libtracker-miner/tracker-priority-queue-test.c
index e6c38aa..a32d0fb 100644
--- a/tests/libtracker-miner/tracker-priority-queue-test.c
+++ b/tests/libtracker-miner/tracker-priority-queue-test.c
@@ -87,9 +87,12 @@ test_priority_queue_peek (void)
TrackerPriorityQueue *queue;
gchar *result;
gint priority;
-
+
queue = tracker_priority_queue_new ();
-
+
+ result = tracker_priority_queue_peek (queue, &priority);
+ g_assert (result == NULL);
+
tracker_priority_queue_add (queue, g_strdup ("Low prio"), 10);
tracker_priority_queue_add (queue, g_strdup ("High prio"), 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]