diff options
author | Michael Cronenworth <mike@cchtml.com> | 2014-08-17 16:26:56 -0500 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2014-09-09 16:07:15 +0200 |
commit | 086c08ceef86825b7b738c2da016915e91896a20 (patch) | |
tree | 4f28fd2eeb282fbe91a99f51b9d4a29dc6ceb480 | |
parent | 92ad58dec9a170a128734ea99e532e8a6a7d5499 (diff) |
trust: Fix token test when building with MinGW
Signed-off-by: Michael Cronenworth <mike@cchtml.com>
-rw-r--r-- | trust/test-token.c | 4 |
1 files changed, 4 insertions, 0 deletions
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)); |