diff options
author | Günther Deschner <gd@samba.org> | 2008-10-24 00:05:05 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-10-24 00:06:43 +0200 |
commit | 0bfbae0f50df01ff058a23419173fd0553281fab (patch) | |
tree | 746a6184846dcb50428b1c63f605f67e0cc62837 /source3 | |
parent | d27bc7377aaea09652d14d06ce70c98d8f618ca7 (diff) | |
download | samba-0bfbae0f50df01ff058a23419173fd0553281fab.tar.gz samba-0bfbae0f50df01ff058a23419173fd0553281fab.tar.bz2 samba-0bfbae0f50df01ff058a23419173fd0553281fab.zip |
netapi: make sure to always cleanup after testing NetUser calls.
Guenther
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/netapi/tests/netuser.c | 4 |
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)); |