From: Michael Cronenworth
Date: Sun, 17 Aug 2014 21:26:56 +0000 (-0500)
Subject: trust: Fix token test when building with MinGW
X-Git-Tag: 0.21.3~6
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=086c08ceef86825b7b738c2da016915e91896a20;p=p11-kit
trust: Fix token test when building with MinGW
Signed-off-by: Michael Cronenworth
---
diff --git a/trust/test-token.c b/trust/test-token.c
index c643f7e..d4c89ce 100644
--- a/trust/test-token.c
+++ b/trust/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));