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>
This commit is contained in:
Sergei Trofimovich
2019-02-16 23:31:45 +00:00
parent e1e11c38f0
commit fa50c6ff94
2 changed files with 17 additions and 0 deletions
+9
View File
@@ -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
+8
View File
@@ -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}