diff options
author | nobody <nobody@localhost> | 2001-07-21 05:39:10 +0800 |
---|---|---|
committer | nobody <nobody@localhost> | 2001-07-21 05:39:10 +0800 |
commit | e5b0c9abd7f9a1759ff942ac9d3a1eb53ddbc1b8 (patch) | |
tree | 73e0cf26a0654d0e265dc3951ab83d825af9dd1f /tests/test-url.c | |
parent | 5637adc2c07617b7f5ea206d24cfa073787a4e0d (diff) | |
download | gsoc2013-evolution-e5b0c9abd7f9a1759ff942ac9d3a1eb53ddbc1b8.tar gsoc2013-evolution-e5b0c9abd7f9a1759ff942ac9d3a1eb53ddbc1b8.tar.gz gsoc2013-evolution-e5b0c9abd7f9a1759ff942ac9d3a1eb53ddbc1b8.tar.bz2 gsoc2013-evolution-e5b0c9abd7f9a1759ff942ac9d3a1eb53ddbc1b8.tar.lz gsoc2013-evolution-e5b0c9abd7f9a1759ff942ac9d3a1eb53ddbc1b8.tar.xz gsoc2013-evolution-e5b0c9abd7f9a1759ff942ac9d3a1eb53ddbc1b8.tar.zst gsoc2013-evolution-e5b0c9abd7f9a1759ff942ac9d3a1eb53ddbc1b8.zip |
This commit was manufactured by cvs2svn to create tagMETATHEME_0_6_1
'METATHEME_0_6_1'.
svn path=/tags/METATHEME_0_6_1/; revision=11288
Diffstat (limited to 'tests/test-url.c')
-rw-r--r-- | tests/test-url.c | 37 |
1 files changed, 0 insertions, 37 deletions
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 <camel.h> - -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; -} |