summaryrefslogtreecommitdiff
path: root/test/socket.c
diff options
context:
space:
mode:
authorJoe Orton <notroj@users.noreply.github.com>2006-02-20 21:42:38 +0000
committerJoe Orton <notroj@users.noreply.github.com>2006-02-20 21:42:38 +0000
commit8f8c5001e3d7e537a236857babb3a649eeedc7d8 (patch)
tree7980bfa9e0913ac09480fc0217fa718fd254b419 /test/socket.c
parent2e2f487c44244d3d58a7b456129b89199de746bf (diff)
downloadneon-git-8f8c5001e3d7e537a236857babb3a649eeedc7d8.tar.gz
* test/socket.c (multi_init): Update for refcounting init/exit.
Diffstat (limited to 'test/socket.c')
-rw-r--r--test/socket.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/socket.c b/test/socket.c
index 9a8d407..359679c 100644
--- a/test/socket.c
+++ b/test/socket.c
@@ -1,6 +1,6 @@
/*
Socket handling tests
- Copyright (C) 2002-2005, Joe Orton <joe@manyfish.co.uk>
+ Copyright (C) 2002-2006, 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
@@ -63,11 +63,14 @@ static int multi_init(void)
res1, res2));
ne_sock_exit();
+ ne_sock_exit();
+ ne_sock_exit();
+
res1 = ne_sock_init();
-
ONV(res1 != res2, ("re-init after exit gave %d not %d",
res1, res2));
-
+ ne_sock_exit();
+
res2 = ne_sock_init();
ONV(res1 != res2, ("second time, cached init result changed from %d to %d",