summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tests/krb5_utils-tests.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/krb5_utils-tests.c b/src/tests/krb5_utils-tests.c
index 58121299..5fee4544 100644
--- a/src/tests/krb5_utils-tests.c
+++ b/src/tests/krb5_utils-tests.c
@@ -389,6 +389,7 @@ START_TEST(test_cc_dir_create)
ret = cc_dir_create(residual, illegal_re, uid, gid, true);
fail_unless(ret == EOK, "cc_dir_create failed\n");
ret = rmdir(dirname);
+ if (ret < 0) ret = errno;
fail_unless(ret == 0, "Cannot remove %s: %s\n", dirname, strerror(ret));
talloc_free(residual);
@@ -401,6 +402,7 @@ START_TEST(test_cc_dir_create)
ret = cc_dir_create(residual, illegal_re, uid, gid, true);
fail_unless(ret == EOK, "cc_dir_create failed\n");
ret = rmdir(dirname);
+ if (ret < 0) ret = errno;
fail_unless(ret == 0, "Cannot remove %s: %s\n", dirname, strerror(ret));
talloc_free(residual);
free(cwd);