summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-10-24 00:05:05 +0200
committerGünther Deschner <gd@samba.org>2008-10-24 00:06:43 +0200
commit0bfbae0f50df01ff058a23419173fd0553281fab (patch)
tree746a6184846dcb50428b1c63f605f67e0cc62837
parentd27bc7377aaea09652d14d06ce70c98d8f618ca7 (diff)
downloadsamba-0bfbae0f50df01ff058a23419173fd0553281fab.tar.gz
samba-0bfbae0f50df01ff058a23419173fd0553281fab.tar.bz2
samba-0bfbae0f50df01ff058a23419173fd0553281fab.zip
netapi: make sure to always cleanup after testing NetUser calls.
Guenther
-rw-r--r--source3/lib/netapi/tests/netuser.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/lib/netapi/tests/netuser.c b/source3/lib/netapi/tests/netuser.c
index 7bbc5ca347..41f794bf34 100644
--- a/source3/lib/netapi/tests/netuser.c
+++ b/source3/lib/netapi/tests/netuser.c
@@ -449,6 +449,10 @@ NET_API_STATUS netapitest_user(struct libnetapi_ctx *ctx,
printf("NetUser tests succeeded\n");
out:
+ /* cleanup */
+ NetUserDel(hostname, username);
+ NetUserDel(hostname, username2);
+
if (status != 0) {
printf("NetUser testsuite failed with: %s\n",
libnetapi_get_error_string(ctx, status));