From owner-svn-src-all@FreeBSD.ORG Sat Nov 1 21:21:07 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 47CC87E1; Sat, 1 Nov 2014 21:21:07 +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 19B7589A; Sat, 1 Nov 2014 21:21:07 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id sA1LL6RP054708; Sat, 1 Nov 2014 21:21:06 GMT (envelope-from ngie@FreeBSD.org) Received: (from ngie@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id sA1LL6wS054707; Sat, 1 Nov 2014 21:21:06 GMT (envelope-from ngie@FreeBSD.org) Message-Id: <201411012121.sA1LL6wS054707@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: ngie set sender to ngie@FreeBSD.org using -f From: Garrett Cooper Date: Sat, 1 Nov 2014 21:21:06 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r273948 - head/contrib/netbsd-tests/lib/libc/stdio X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Nov 2014 21:21:07 -0000 Author: ngie Date: Sat Nov 1 21:21:06 2014 New Revision: 273948 URL: https://svnweb.freebsd.org/changeset/base/273948 Log: Disable testcases 12 and 15-22 on FreeBSD Submitted by: pho Modified: head/contrib/netbsd-tests/lib/libc/stdio/t_fmemopen.c Modified: head/contrib/netbsd-tests/lib/libc/stdio/t_fmemopen.c ============================================================================== --- head/contrib/netbsd-tests/lib/libc/stdio/t_fmemopen.c Sat Nov 1 21:00:40 2014 (r273947) +++ head/contrib/netbsd-tests/lib/libc/stdio/t_fmemopen.c Sat Nov 1 21:21:06 2014 (r273948) @@ -27,7 +27,7 @@ * */ -#if defined(__NetBSD__) +#if defined(__FreeBSD__) || defined(__NetBSD__) #include #else #if defined(__linux__) @@ -563,6 +563,7 @@ ATF_TC_BODY(test11, tc) } } +#ifndef __FreeBSD__ ATF_TC(test12); ATF_TC_HEAD(test12, tc) { @@ -620,6 +621,7 @@ ATF_TC_BODY(test12, tc) } } } +#endif ATF_TC(test13); ATF_TC_HEAD(test13, tc) @@ -629,7 +631,9 @@ ATF_TC_HEAD(test13, tc) ATF_TC_BODY(test13, tc) { struct testcase *t; +#ifndef __FreeBSD__ off_t i; +#endif const char **p; char buf[BUFSIZ]; FILE *fp; @@ -659,7 +663,9 @@ ATF_TC_BODY(test13, tc) /* negative + OOB */ ATF_CHECK(fseeko(fp, -1, SEEK_END) == -1); ATF_CHECK(ftello(fp) == (off_t)0); +#endif +#ifndef __FreeBSD__ /* positive */ for (i = 1; i <= t->n; ++i) { ATF_CHECK(fseeko(fp, i, SEEK_END) == 0); @@ -711,11 +717,13 @@ ATF_TC_BODY(test14, tc) ATF_CHECK(fseeko(fp, -(len + 1), SEEK_END) == -1); ATF_CHECK(ftello(fp) == len); +#ifndef __FreeBSD__ /* positive */ for (i = 1; i <= rest; ++i) { ATF_CHECK(fseeko(fp, i, SEEK_END) == 0); ATF_CHECK(ftello(fp) == len + i); } +#endif /* negative */ for (i = 1; i < len; ++i) { @@ -734,6 +742,8 @@ const char *mode_rw1[] = { NULL }; +#ifndef __FreeBSD__ + /* test15 - 18: * When a stream open for writing is flushed or closed, a null byte is written * at the current position or at the end of the buffer, depending on the size @@ -1135,6 +1145,7 @@ ATF_TC_BODY(test22, tc) } } } +#endif ATF_TP_ADD_TCS(tp) { @@ -1150,9 +1161,12 @@ ATF_TP_ADD_TCS(tp) ATF_TP_ADD_TC(tp, test09); ATF_TP_ADD_TC(tp, test10); ATF_TP_ADD_TC(tp, test11); +#ifndef __FreeBSD__ ATF_TP_ADD_TC(tp, test12); +#endif ATF_TP_ADD_TC(tp, test13); ATF_TP_ADD_TC(tp, test14); +#ifndef __FreeBSD__ ATF_TP_ADD_TC(tp, test15); ATF_TP_ADD_TC(tp, test16); ATF_TP_ADD_TC(tp, test17); @@ -1161,6 +1175,7 @@ ATF_TP_ADD_TCS(tp) ATF_TP_ADD_TC(tp, test20); ATF_TP_ADD_TC(tp, test21); ATF_TP_ADD_TC(tp, test22); +#endif return atf_no_error(); }