aboutsummaryrefslogtreecommitdiffstats
path: root/camel/tests/misc
diff options
context:
space:
mode:
Diffstat (limited to 'camel/tests/misc')
-rw-r--r--camel/tests/misc/.cvsignore1
-rw-r--r--camel/tests/misc/url.c11
2 files changed, 9 insertions, 3 deletions
diff --git a/camel/tests/misc/.cvsignore b/camel/tests/misc/.cvsignore
index 3fa8afaa38..7ef94ab5fa 100644
--- a/camel/tests/misc/.cvsignore
+++ b/camel/tests/misc/.cvsignore
@@ -9,3 +9,4 @@ Makefile.in
*.bbg
*.da
*.gcov
+url \ No newline at end of file
diff --git a/camel/tests/misc/url.c b/camel/tests/misc/url.c
index cc61ef3cd6..6a583279d1 100644
--- a/camel/tests/misc/url.c
+++ b/camel/tests/misc/url.c
@@ -5,6 +5,7 @@
#include <stdlib.h>
#include <string.h>
#include <camel/camel-url.h>
+#include <camel/camel-exception.h>
#include "camel-test.h"
@@ -59,6 +60,7 @@ int
main (int argc, char **argv)
{
CamelURL *base_url, *url;
+ CamelException ex;
char *url_string;
int i;
@@ -67,9 +69,12 @@ main (int argc, char **argv)
camel_test_start ("RFC1808 relative URL parsing");
camel_test_push ("base URL parsing");
- base_url = camel_url_new (base);
- if (!base_url)
- camel_test_fail ("Could not parse %s\n", base);
+ camel_exception_clear (&ex);
+ base_url = camel_url_new (base, &ex);
+ if (!base_url) {
+ camel_test_fail ("Could not parse %s: %s\n", base,
+ camel_exception_get_description (&ex));
+ }
camel_test_pull ();
camel_test_push ("base URL unparsing");