summaryrefslogtreecommitdiff
path: root/extensions/fts++
diff options
context:
space:
mode:
authorSiegfried-Angel Gevatter Pujals <siegfried@gevatter.com>2012-02-10 14:35:02 +0100
committerSiegfried-Angel Gevatter Pujals <siegfried@gevatter.com>2012-02-10 14:35:02 +0100
commitf7d88e662ceedb8b4aa0a925e0e0b00a0569d1a3 (patch)
tree567d8bc6fabd10304cb17b13a411ff07e0a5594f /extensions/fts++
parent620a9961c7727c2b043e523d74bd6334bc6340a6 (diff)
downloadzeitgeist-f7d88e662ceedb8b4aa0a925e0e0b00a0569d1a3.tar.gz
- Pre-process events before they are send to the extensions (LP: #628804).
- Fix Storage Monitor to take into account that events may be NULL. - Fix error messages (related to MOVE_EVENT) that were interchanged.
Diffstat (limited to 'extensions/fts++')
-rw-r--r--extensions/fts++/test/test-indexer.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/extensions/fts++/test/test-indexer.cpp b/extensions/fts++/test/test-indexer.cpp
index 4d51c3ee..789e1c2b 100644
--- a/extensions/fts++/test/test-indexer.cpp
+++ b/extensions/fts++/test/test-indexer.cpp
@@ -169,13 +169,22 @@ static ZeitgeistEvent* create_test_event5 (void)
static guint
index_event (Fixture *fix, ZeitgeistEvent *event)
{
+ GPtrArray *events;
guint event_id = 0;
+ guint *event_ids;
+ int num_events_inserted;
// add event to DBs
- event_id = zeitgeist_engine_insert_event (ZEITGEIST_ENGINE (fix->db),
- event, NULL, NULL);
+ events = g_ptr_array_new ();
+ g_ptr_array_add (events, event);
+ event_ids = zeitgeist_engine_insert_events (ZEITGEIST_ENGINE (fix->db),
+ events, NULL,
+ &num_events_inserted, NULL);
+ g_assert_cmpint (1, ==, num_events_inserted);
+ event_id = *event_ids;
+ g_ptr_array_unref (events);
- GPtrArray *events = g_ptr_array_new_with_free_func (g_object_unref);
+ events = g_ptr_array_new_with_free_func (g_object_unref);
g_ptr_array_add (events, event); // steal event ref
zeitgeist_indexer_index_events (fix->indexer, events);
g_ptr_array_unref (events);