summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Cronenworth <mike@cchtml.com>2014-08-17 16:26:56 -0500
committerStef Walter <stef@thewalter.net>2014-09-09 16:10:03 +0200
commitb567968d0aa5d039a7c5d7f7d046301e66808aa0 (patch)
tree39dc73460c403c6607d984d723764b5eb2421abf
parent874fdf0cbffdeed94f350fe3351672a131d0f37c (diff)
downloadp11-kit-b567968d0aa5d039a7c5d7f7d046301e66808aa0.tar.gz
trust: Fix token test when building with MinGW
Signed-off-by: Michael Cronenworth <mike@cchtml.com>
-rw-r--r--trust/tests/test-token.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/trust/tests/test-token.c b/trust/tests/test-token.c
index 43ddefa..6b3789d 100644
--- a/trust/tests/test-token.c
+++ b/trust/tests/test-token.c
@@ -238,11 +238,15 @@ test_not_writable (void)
{
p11_token *token;
+#ifdef OS_UNIX
if (getuid () != 0) {
+#endif
token = p11_token_new (333, "/", "Label");
assert (!p11_token_is_writable (token));
p11_token_free (token);
+#ifdef OS_UNIX
}
+#endif
token = p11_token_new (333, "", "Label");
assert (!p11_token_is_writable (token));