From 013b7b496e637dc82eb1d3f7ad8da5a2b8acdc2c Mon Sep 17 00:00:00 2001 From: jruoho Date: Tue, 21 Jun 2011 01:45:26 +0000 Subject: [PATCH] Require unprivileged runs when appropriate. --- tests/syscall/t_truncate.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/syscall/t_truncate.c b/tests/syscall/t_truncate.c index d6ae47705a4a..ea9c6315a2bd 100644 --- a/tests/syscall/t_truncate.c +++ b/tests/syscall/t_truncate.c @@ -1,4 +1,4 @@ -/* $NetBSD: t_truncate.c,v 1.1 2011/06/20 18:03:41 jruoho Exp $ */ +/* $NetBSD: t_truncate.c,v 1.2 2011/06/21 01:45:26 jruoho Exp $ */ /*- * Copyright (c) 2011 The NetBSD Foundation, Inc. @@ -29,7 +29,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include -__RCSID("$NetBSD: t_truncate.c,v 1.1 2011/06/20 18:03:41 jruoho Exp $"); +__RCSID("$NetBSD: t_truncate.c,v 1.2 2011/06/21 01:45:26 jruoho Exp $"); #include @@ -84,6 +84,7 @@ ATF_TC(ftruncate_err); ATF_TC_HEAD(ftruncate_err, tc) { atf_tc_set_md_var(tc, "descr", "Test errors from ftruncate(2)"); + atf_tc_set_md_var(tc, "require.user", "unprivileged"); } ATF_TC_BODY(ftruncate_err, tc) @@ -143,6 +144,7 @@ ATF_TC(truncate_err); ATF_TC_HEAD(truncate_err, tc) { atf_tc_set_md_var(tc, "descr", "Test errors from truncate(2)"); + atf_tc_set_md_var(tc, "require.user", "unprivileged"); } ATF_TC_BODY(truncate_err, tc)