diff options
author | 2009-07-27 22:08:43 +0000 | |
---|---|---|
committer | 2009-07-27 22:08:43 +0000 | |
commit | e40ea88912e078efe7fdce901110c18941d74cc4 (patch) | |
tree | 1d9f6e61ce9286247c3d8ac2a9f2a64884c0ce8e /dev-db | |
parent | amd64 stable, bug #268163 (diff) | |
download | gentoo-2-e40ea88912e078efe7fdce901110c18941d74cc4.tar.gz gentoo-2-e40ea88912e078efe7fdce901110c18941d74cc4.tar.bz2 gentoo-2-e40ea88912e078efe7fdce901110c18941d74cc4.zip |
Disable failing tests which were absent in previous versions. Don't check FEATURES (bug #278870).
(Portage version: 13851-svn/cvs/Linux x86_64)
Diffstat (limited to 'dev-db')
-rw-r--r-- | dev-db/sqlite/ChangeLog | 7 | ||||
-rw-r--r-- | dev-db/sqlite/files/sqlite-3.6.16-tkt3922.test.patch | 23 | ||||
-rw-r--r-- | dev-db/sqlite/sqlite-3.6.16.ebuild | 27 |
3 files changed, 41 insertions, 16 deletions
diff --git a/dev-db/sqlite/ChangeLog b/dev-db/sqlite/ChangeLog index 16599a7cc526..50400e32ac37 100644 --- a/dev-db/sqlite/ChangeLog +++ b/dev-db/sqlite/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-db/sqlite # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/sqlite/ChangeLog,v 1.263 2009/07/27 17:02:15 nixnut Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/sqlite/ChangeLog,v 1.264 2009/07/27 22:08:43 arfrever Exp $ + + 27 Jul 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + sqlite-3.6.16.ebuild, +files/sqlite-3.6.16-tkt3922.test.patch: + Disable failing tests which were absent in previous versions. Don't check + FEATURES (bug #278870). 27 Jul 2009; nixnut <nixnut@gentoo.org> sqlite-3.6.14.2.ebuild: ppc stable #275592 diff --git a/dev-db/sqlite/files/sqlite-3.6.16-tkt3922.test.patch b/dev-db/sqlite/files/sqlite-3.6.16-tkt3922.test.patch new file mode 100644 index 000000000000..d092bc17e3d4 --- /dev/null +++ b/dev-db/sqlite/files/sqlite-3.6.16-tkt3922.test.patch @@ -0,0 +1,23 @@ +--- test/tkt3922.test ++++ test/tkt3922.test +@@ -36,20 +36,6 @@ + } + } {-1 integer} + } +-do_test tkt3922.2 { +- execsql { +- DELETE FROM t1; +- INSERT INTO t1 VALUES('-9223372036854775809'); +- SELECT a, typeof(a) FROM t1; +- } +-} {-9.22337203685478e+18 real} +-do_test tkt3922.3 { +- execsql { +- DELETE FROM t1; +- INSERT INTO t1 VALUES('-9223372036854776832'); +- SELECT a, typeof(a) FROM t1; +- } +-} {-9.22337203685478e+18 real} + do_test tkt3922.4 { + execsql { + DELETE FROM t1; diff --git a/dev-db/sqlite/sqlite-3.6.16.ebuild b/dev-db/sqlite/sqlite-3.6.16.ebuild index 32b336f55899..c7064d3d196b 100644 --- a/dev-db/sqlite/sqlite-3.6.16.ebuild +++ b/dev-db/sqlite/sqlite-3.6.16.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/sqlite/sqlite-3.6.16.ebuild,v 1.1 2009/06/27 21:31:00 arfrever Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/sqlite/sqlite-3.6.16.ebuild,v 1.2 2009/07/27 22:08:43 arfrever Exp $ EAPI="2" @@ -23,23 +23,12 @@ RDEPEND="tcl? ( dev-lang/tcl )" DEPEND="${RDEPEND} doc? ( app-arch/unzip )" -pkg_setup() { - if has test ${FEATURES}; then - if ! has userpriv ${FEATURES}; then - ewarn "The userpriv feature must be enabled to run tests." - eerror "Testsuite will not be run." - fi - if ! use tcl; then - ewarn "You must enable the tcl use flag if you want to run the testsuite." - eerror "Testsuite will not be run." - fi - fi -} - src_prepare() { # note: this sandbox fix is no longer needed with sandbox-1.3+ epatch "${FILESDIR}"/sandbox-fix2.patch + epatch "${FILESDIR}"/${P}-tkt3922.test.patch + epunt_cxx } @@ -62,10 +51,18 @@ src_compile() { } src_test() { - if has userpriv ${FEATURES}; then + if [[ "${EUID}" -ne "0" ]]; then local test=test use debug && test=fulltest emake ${test} || die "some test(s) failed" + else + ewarn "The userpriv feature must be enabled to run tests." + eerror "Testsuite will not be run." + fi + + if ! use tcl; then + ewarn "You must enable the tcl USE flag if you want to run the testsuite." + eerror "Testsuite will not be run." fi } |