From owner-svn-src-head@FreeBSD.ORG Thu Oct 23 07:07:36 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 154DB8E1; Thu, 23 Oct 2014 07:07:36 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 01AD23FE; Thu, 23 Oct 2014 07:07:36 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s9N77ZTs058842; Thu, 23 Oct 2014 07:07:35 GMT (envelope-from ngie@FreeBSD.org) Received: (from ngie@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s9N77ZXL058841; Thu, 23 Oct 2014 07:07:35 GMT (envelope-from ngie@FreeBSD.org) Message-Id: <201410230707.s9N77ZXL058841@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: ngie set sender to ngie@FreeBSD.org using -f From: Garrett Cooper Date: Thu, 23 Oct 2014 07:07:35 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r273527 - head/contrib/netbsd-tests/lib/libc/sys X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Oct 2014 07:07:36 -0000 Author: ngie Date: Thu Oct 23 07:07:35 2014 New Revision: 273527 URL: https://svnweb.freebsd.org/changeset/base/273527 Log: Omit all of the testcases as revoke(2) is only implemented on devfs(5) Submitted by: pho Sponsored by: EMC / Isilon Storage Division Modified: head/contrib/netbsd-tests/lib/libc/sys/t_revoke.c Modified: head/contrib/netbsd-tests/lib/libc/sys/t_revoke.c ============================================================================== --- head/contrib/netbsd-tests/lib/libc/sys/t_revoke.c Thu Oct 23 07:05:14 2014 (r273526) +++ head/contrib/netbsd-tests/lib/libc/sys/t_revoke.c Thu Oct 23 07:07:35 2014 (r273527) @@ -58,6 +58,9 @@ ATF_TC_BODY(revoke_basic, tc) size_t i, n; int *buf; +#if defined(__FreeBSD__) + atf_tc_skip("revoke(2) is only implemented for devfs(5)."); +#endif (void)memset(&res, 0, sizeof(struct rlimit)); (void)getrlimit(RLIMIT_NOFILE, &res); @@ -113,6 +116,9 @@ ATF_TC_BODY(revoke_err, tc) errno = 0; ATF_REQUIRE_ERRNO(ENAMETOOLONG, revoke(buf) == -1); +#if defined(__FreeBSD__) + atf_tc_skip("revoke(2) is only implemented for devfs(5)."); +#endif errno = 0; ATF_REQUIRE_ERRNO(EPERM, revoke("/etc/passwd") == -1); @@ -133,6 +139,9 @@ ATF_TC_BODY(revoke_perm, tc) int fd, sta; pid_t pid; +#if defined(__FreeBSD__) + atf_tc_skip("revoke(2) is only implemented for devfs(5)."); +#endif pw = getpwnam("nobody"); fd = open(path, O_RDWR | O_CREAT, 0600);