diff options
author | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2005-01-27 22:27:26 +0000 |
---|---|---|
committer | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2005-01-27 22:27:26 +0000 |
commit | 76531c6ba38e007588ed8b89891c9a4f2fc0b12e (patch) | |
tree | a1c00781b9b13a45f9b78690b6ef741cbe039d24 /test/uri-tests.c | |
parent | 26be7e58353263de02542209b3fdfde694f8da15 (diff) | |
download | neon-76531c6ba38e007588ed8b89891c9a4f2fc0b12e.tar.gz |
* test/uri-tests.c (leak_authinfo): Add expected-leaky test for
ne_uri_parse leak.
git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@464 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
Diffstat (limited to 'test/uri-tests.c')
-rw-r--r-- | test/uri-tests.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/test/uri-tests.c b/test/uri-tests.c index 753c376..7555dd8 100644 --- a/test/uri-tests.c +++ b/test/uri-tests.c @@ -1,6 +1,6 @@ /* - URI tests - Copyright (C) 2001-2003, Joe Orton <joe@manyfish.co.uk> + URI handling tests + Copyright (C) 2001-2005, Joe Orton <joe@manyfish.co.uk> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -357,6 +357,13 @@ static int unparse(void) return OK; } +static int leak_authinfo(void) +{ + ne_uri uri; + ne_uri_parse("http://fish@[ackack", &uri); + return OK; +} + ne_test tests[] = { T(simple), T(simple_ssl), @@ -373,5 +380,6 @@ ne_test tests[] = { T(parse), T(failparse), T(unparse), + T_XLEAKY(leak_authinfo), T(NULL) }; |