aboutsummaryrefslogtreecommitdiffstats
path: root/tests/t-stringutils.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/t-stringutils.c')
-rw-r--r--tests/t-stringutils.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/t-stringutils.c b/tests/t-stringutils.c
index a7351e5..8879e1a 100644
--- a/tests/t-stringutils.c
+++ b/tests/t-stringutils.c
@@ -325,6 +325,21 @@ check_absfnameconcat (void)
}
+static void
+check_access (void)
+{
+ char *cwd = mygetcwd ();
+
+ if (gpgrt_access (cwd, F_OK))
+ fail ("gpgrt_access(%s) failed: %s\n",
+ cwd, gpg_strerror (gpg_error_from_syserror ()));
+ else
+ show ("gpgrt_access(%s) succeeded\n", cwd);
+
+ xfree (cwd);
+}
+
+
int
main (int argc, char **argv)
{
@@ -373,6 +388,7 @@ main (int argc, char **argv)
check_fnameconcat ();
check_absfnameconcat ();
+ check_access ();
show ("testing string utilities finished\n");
return !!errorcount;