tracker r1952 - in branches/indexer-split: . src/libtracker-common tests/libtracker-common
- From: ifrade svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r1952 - in branches/indexer-split: . src/libtracker-common tests/libtracker-common
- Date: Mon, 28 Jul 2008 12:02:55 +0000 (UTC)
Author: ifrade
Date: Mon Jul 28 12:02:55 2008
New Revision: 1952
URL: http://svn.gnome.org/viewvc/tracker?rev=1952&view=rev
Log:
Max words to index and a test fixed
Modified:
branches/indexer-split/ChangeLog
branches/indexer-split/src/libtracker-common/tracker-parser.c
branches/indexer-split/tests/libtracker-common/tracker-ontology-test.c
Modified: branches/indexer-split/src/libtracker-common/tracker-parser.c
==============================================================================
--- branches/indexer-split/src/libtracker-common/tracker-parser.c (original)
+++ branches/indexer-split/src/libtracker-common/tracker-parser.c Mon Jul 28 12:02:55 2008
@@ -578,7 +578,7 @@
total_words++;
- if (total_words < max_words_to_index) {
+ if (total_words <= max_words_to_index) {
gint count;
count = GPOINTER_TO_INT (g_hash_table_lookup (word_table, index_word));
@@ -617,7 +617,7 @@
if (word) {
total_words++;
- if (total_words < max_words_to_index) {
+ if (total_words <= max_words_to_index) {
gint count;
count = GPOINTER_TO_INT (g_hash_table_lookup (word_table, word));
Modified: branches/indexer-split/tests/libtracker-common/tracker-ontology-test.c
==============================================================================
--- branches/indexer-split/tests/libtracker-common/tracker-ontology-test.c (original)
+++ branches/indexer-split/tests/libtracker-common/tracker-ontology-test.c Mon Jul 28 12:02:55 2008
@@ -271,9 +271,9 @@
TrackerDBType result_db;
result_db = tracker_ontology_get_db_for_service_type ("Test service");
- g_assert (result_db == TRACKER_DB_TYPE_DATA); // ????? HARDCODED IN tracker-utils!!!!!
+ g_assert (result_db == TRACKER_DB_TYPE_FILES); // ????? HARDCODED IN tracker-ontology!!!!!
result_db = tracker_ontology_get_db_for_service_type ("trash");
- g_assert (result_db == TRACKER_DB_TYPE_DATA);
+ g_assert (result_db == TRACKER_DB_TYPE_FILES);
}
@@ -376,36 +376,36 @@
tracker_services_general_setup ();
- g_test_add_func ("/trackerd/tracker-services/get_id_for_service",
+ g_test_add_func ("/libtracker-common/tracker-ontology/get_id_for_service",
test_get_id_for_service);
- g_test_add_func ("/trackerd/tracker-services/get_service_for_id",
+ g_test_add_func ("/libtracker-common/tracker-ontology/get_service_for_id",
test_get_service_by_id);
- g_test_add_func ("/trackerd/tracker-services/get_parent_service_by_id",
+ g_test_add_func ("/libtracker-common/tracker-ontology/get_parent_service_by_id",
test_get_parent_service_by_id);
- g_test_add_func ("/trackerd/tracker-services/get_parent_id_for_service_id",
+ g_test_add_func ("/libtracker-common/tracker-ontology/get_parent_id_for_service_id",
test_get_parent_id_for_service_id);
- g_test_add_func ("/trackerd/tracker-services/get_parent_service",
+ g_test_add_func ("/libtracker-common/tracker-ontology/get_parent_service",
test_get_parent_service);
- g_test_add_func ("/trackerd/tracker-services/get_service_type_for_mime",
+ g_test_add_func ("/libtracker-common/tracker-ontology/get_service_type_for_mime",
test_get_service_type_for_mime);
- g_test_add_func ("/trackerd/tracker-services/get_service",
+ g_test_add_func ("/libtracker-common/tracker-ontology/get_service",
test_get_service);
- g_test_add_func ("/trackerd/tracker-services/get_db_for_service",
+ g_test_add_func ("/libtracker-common/tracker-ontology/get_db_for_service",
test_get_db_for_service);
- g_test_add_func ("/trackerd/tracker-services/is_service_embedded",
+ g_test_add_func ("/libtracker-common/tracker-ontology/is_service_embedded",
test_is_service_embedded);
- g_test_add_func ("/trackerd/tracker-services/has_thumbnails",
+ g_test_add_func ("/libtracker-common/tracker-ontology/has_thumbnails",
test_has_thumbnails);
- g_test_add_func ("/trackerd/tracker-services/has_text",
+ g_test_add_func ("/libtracker-common/tracker-ontology/has_text",
test_has_text);
- g_test_add_func ("/trackerd/tracker-services/has_metadata",
+ g_test_add_func ("/libtracker-common/tracker-ontology/has_metadata",
test_has_metadata);
- g_test_add_func ("/trackerd/tracker-services/test_field_in_ontology",
+ g_test_add_func ("/libtracker-common/tracker-ontology/test_field_in_ontology",
test_field_in_ontology);
- g_test_add_func ("/trackerd/tracker-services/test_get_all_registered_service_types",
+ g_test_add_func ("/libtracker-common/tracker-ontology/test_get_all_registered_service_types",
test_get_registered_service_types);
- g_test_add_func ("/trackerd/tracker-services/test_get_all_registered_field_types",
+ g_test_add_func ("/libtracker-common/tracker-ontology/test_get_all_registered_field_types",
test_get_registered_field_types);
result = g_test_run ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]