From 7d746fe814b1f2f7404f52f9f054698f99510baa Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Mon, 3 May 2010 22:03:38 +0000 Subject: [PATCH] Bug #263797: Do not run the sys-libs/db testsuite as root. --- eclass/db.eclass | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/eclass/db.eclass b/eclass/db.eclass index 02e5fb018204..c1abfe82c8b1 100644 --- a/eclass/db.eclass +++ b/eclass/db.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/db.eclass,v 1.31 2009/07/29 20:25:25 pauldv Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/db.eclass,v 1.32 2010/05/03 22:03:38 robbat2 Exp $ # This is a common location for functions used in the sys-libs/db ebuilds # # Bugs: pauldv@gentoo.org @@ -116,6 +116,11 @@ db_src_install_usrlibcleanup() { } db_src_test() { + if [[ $UID -eq 0 ]]; then + ewarn "You must run the testsuite as non-root, skipping" + elog "You must run the testsuite as non-root, skipping" + return 0 + fi if useq tcl; then einfo "Running sys-libs/db testsuite" ewarn "This can take 6+ hours on modern machines" -- 2.26.2