lib/util: Fix cleanup in unit test
authorChristof Schmitt <cs@samba.org>
Tue, 18 Aug 2020 18:14:47 +0000 (11:14 -0700)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 24 Aug 2020 01:46:30 +0000 (01:46 +0000)
Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/util/tests/test_util.c

index eebba39e70ca777ba4087868dfd13c926b5db660..52baf9ae56d8e4ebafb6f07fa9b18655086a8a24 100644 (file)
@@ -111,7 +111,7 @@ static int group_teardown(void **state)
        ret = unlink(paths->symlink_file);
        assert_return_code(ret, errno);
 
-       ret = unlink(paths->testdir);
+       ret = rmdir(paths->testdir);
        assert_return_code(ret, errno);
 
        free(paths);