summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2019-02-16 23:31:34 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2019-02-16 23:31:45 +0000
commitfa50c6ff949245f25249b76afba190a00a5e1641 (patch)
tree52c064bd94d15b14ec634406c7ba4df20dafb542 /app-misc
parentgnome-base/gnome-extra-apps: delete stale comment (diff)
downloadgentoo-fa50c6ff949245f25249b76afba190a00a5e1641.tar.gz
gentoo-fa50c6ff949245f25249b76afba190a00a5e1641.tar.bz2
gentoo-fa50c6ff949245f25249b76afba190a00a5e1641.zip
app-misc/mc: disable forking in testsuite, bug #644462
A few mc tests validate 'fork' functionality by mocking out fork(). check uses fork() by default as a way to isolate testsiute. This causes conflict. To resove conflict we disable forking in check via CK_FORK=no environment variable. Reported-by: Rolf Eike Beer Closes: https://bugs.gentoo.org/644462 Package-Manager: Portage-2.3.60, Repoman-2.3.12 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/mc/mc-4.8.22.ebuild9
-rw-r--r--app-misc/mc/mc-9999.ebuild8
2 files changed, 17 insertions, 0 deletions
diff --git a/app-misc/mc/mc-4.8.22.ebuild b/app-misc/mc/mc-4.8.22.ebuild
index e2a128c7a3d3..7f41dea701e3 100644
--- a/app-misc/mc/mc-4.8.22.ebuild
+++ b/app-misc/mc/mc-4.8.22.ebuild
@@ -70,6 +70,15 @@ src_configure() {
econf "${myeconfargs[@]}"
}
+src_test() {
+ # CK_FORK=no to avoid using fork() in check library
+ # as mc mocks fork() itself: bug #644462.
+ #
+ # VERBOSE=1 to make test failures contain detailed
+ # information.
+ CK_FORK=no emake check VERBOSE=1
+}
+
src_install() {
emake DESTDIR="${D}" install
dodoc AUTHORS README NEWS
diff --git a/app-misc/mc/mc-9999.ebuild b/app-misc/mc/mc-9999.ebuild
index 722ae657e0d8..d27af1106ec4 100644
--- a/app-misc/mc/mc-9999.ebuild
+++ b/app-misc/mc/mc-9999.ebuild
@@ -83,6 +83,14 @@ src_configure() {
econf "${myeconfargs[@]}"
}
+src_test() {
+ # CK_FORK=no to avoid using fork() in check library
+ # as mc mocks fork() itself: bug #644462.
+ #
+ # VERBOSE=1 to make test failures contain detailed
+ # information.
+ CK_FORK=no emake check VERBOSE=1
+}
src_install() {
emake DESTDIR="${D}" install
dodoc AUTHORS doc/{FAQ,NEWS,README}