From b1e4aff9fb07d7c4d48ed80c1d352faa87a08756 Mon Sep 17 00:00:00 2001 From: nobody Date: Mon, 20 Aug 2001 15:43:30 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'sigc1_1_before_patch'. svn path=/tags/sigc1_1_before_patch/; revision=12308 --- tests/test-url.c | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 tests/test-url.c (limited to 'tests/test-url.c') diff --git a/tests/test-url.c b/tests/test-url.c deleted file mode 100644 index 5d8d75951b..0000000000 --- a/tests/test-url.c +++ /dev/null @@ -1,37 +0,0 @@ -#include - -int main (int argc, char **argv) -{ - CamelURL *url; - CamelException *ex; - - if (argc != 2) { - fprintf (stderr, "Usage: test-url URL\n"); - exit (1); - } - - ex = camel_exception_new (); - url = camel_url_new (argv[1], ex); - if (!url) { - fprintf (stderr, "Could not parse URL:\n%s", - camel_exception_get_description (ex)); - exit (1); - } - - printf ("URL : %s\n\n", camel_url_to_string (url, TRUE)); - printf ("Protocol: %s\n", url->protocol); - if (url->user) - printf ("User : %s\n", url->user); - if (url->authmech) - printf ("Authmech: %s\n", url->authmech); - if (url->passwd) - printf ("Password: %s\n", url->passwd); - if (url->host) - printf ("Host : %s\n", url->host); - if (url->port) - printf ("Port : %d\n", url->port); - if (url->path) - printf ("Path : %s\n", url->path); - - return 0; -} -- cgit v1.2.3