]> granicus.if.org Git - p11-kit/commitdiff
trust: Fix token test when building with MinGW
authorMichael Cronenworth <mike@cchtml.com>
Sun, 17 Aug 2014 21:26:56 +0000 (16:26 -0500)
committerStef Walter <stef@thewalter.net>
Tue, 9 Sep 2014 14:07:15 +0000 (16:07 +0200)
Signed-off-by: Michael Cronenworth <mike@cchtml.com>
trust/test-token.c

index c643f7ee943a59b526b3116517e52f56c3295485..d4c89ce0faf67228777ab6e3896a3cc0c04bfb04 100644 (file)
@@ -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));