From 086c08ceef86825b7b738c2da016915e91896a20 Mon Sep 17 00:00:00 2001 From: Michael Cronenworth Date: Sun, 17 Aug 2014 16:26:56 -0500 Subject: trust: Fix token test when building with MinGW Signed-off-by: Michael Cronenworth --- trust/test-token.c | 4 ++++ 1 file changed, 4 insertions(+) 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)); -- cgit v1.1