diff options
-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)); |