projects
/
modest
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Fixes NB#104978, crash in account wizard when language/region do not match
[modest]
/
tests
/
dbus_api
/
test_search.c
diff --git
a/tests/dbus_api/test_search.c
b/tests/dbus_api/test_search.c
index
414231b
..
af45ce7
100644
(file)
--- a/
tests/dbus_api/test_search.c
+++ b/
tests/dbus_api/test_search.c
@@
-8,6
+8,7
@@
int main (int argc, char *argv[])
gboolean res;
ModestDBusSearchFlags flags;
GList *hits, *iter;
gboolean res;
ModestDBusSearchFlags flags;
GList *hits, *iter;
+ const char *query;
osso_context = osso_initialize ("test_search",
"0.0.1",
osso_context = osso_initialize ("test_search",
"0.0.1",
@@
-24,10
+25,16
@@
int main (int argc, char *argv[])
hits = NULL;
flags = MODEST_DBUS_SEARCH_SUBJECT | MODEST_DBUS_SEARCH_BODY;
hits = NULL;
flags = MODEST_DBUS_SEARCH_SUBJECT | MODEST_DBUS_SEARCH_BODY;
- g_print ("Starting search ...\n");
+ if (argc == 2) {
+ query = argv[1];
+ } else {
+ query = "no";
+ }
+
+ g_print ("Starting search (%s)...\n", query);
res = libmodest_dbus_client_search (osso_context,
res = libmodest_dbus_client_search (osso_context,
- "no",
+ query,
"",
0,
0,
"",
0,
0,
@@
-44,5
+51,7
@@
int main (int argc, char *argv[])
}
}
+ modest_search_hit_list_free (hits);
+
return res ? 0 : -1;
}
return res ? 0 : -1;
}