summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2008-09-08 19:29:34 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2008-09-08 19:29:34 +0400
commit5237a665760b680f2f2765322238b53c5988a40c (patch)
tree3d7c442ac688b684c231172f2d8177304b8ea12e /test
parent946ddcfbc4c7cdd3df426eb5f9a15f4a3fc3c640 (diff)
downloadrspamd-5237a665760b680f2f2765322238b53c5988a40c.tar.gz
rspamd-5237a665760b680f2f2765322238b53c5988a40c.zip
* Use glib logger and regexp matching functions
Diffstat (limited to 'test')
-rw-r--r--test/rspamd_url_test.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/rspamd_url_test.c b/test/rspamd_url_test.c
index 29be737e1..17565de80 100644
--- a/test/rspamd_url_test.c
+++ b/test/rspamd_url_test.c
@@ -33,13 +33,14 @@ rspamd_url_test_func ()
text->data = (gchar *)test_text;
text->len = sizeof (test_text);
html = g_byte_array_new();
- text->data = (gchar *)test_html;
- text->len = sizeof (test_html);
+ html->data = (gchar *)test_html;
+ html->len = sizeof (test_html);
bzero (&task, sizeof (task));
TAILQ_INIT (&task.urls);
g_test_timer_start ();
g_test_message ("* Testing text URL regexp parser *");
+ g_test_message ("Passing string: %s", test_text);
url_parse_text (&task, text);
TAILQ_FOREACH (url, &task.urls, next) {
@@ -60,6 +61,7 @@ rspamd_url_test_func ()
i = 0;
g_test_timer_start ();
g_test_message ("* Testing html URL regexp parser *");
+ g_test_message ("Passing string: %s", test_html);
url_parse_html (&task, html);
TAILQ_FOREACH (url, &task.urls, next) {