Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: eclass/
Date: Tue, 02 Oct 2012 08:19:17
Message-Id: 1349165825.3a3dbce18a5d2d7188064e6edbe1b5e14c75dad3.kensington@gentoo
1 commit: 3a3dbce18a5d2d7188064e6edbe1b5e14c75dad3
2 Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 2 08:16:30 2012 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 2 08:17:05 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=3a3dbce1
7
8 [eclass] Return status at the end of CMake test phase. This fixes bug #406353.
9
10 ---
11 eclass/cmake-utils.eclass | 7 ++++++-
12 1 files changed, 6 insertions(+), 1 deletions(-)
13
14 diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
15 index fff3fba..2463bc5 100644
16 --- a/eclass/cmake-utils.eclass
17 +++ b/eclass/cmake-utils.eclass
18 @@ -472,6 +472,8 @@ enable_cmake-utils_src_test() {
19
20 if ctest ${ctestargs} "$@" ; then
21 einfo "Tests succeeded."
22 + popd > /dev/null
23 + return 0
24 else
25 if [[ -n "${CMAKE_YES_I_WANT_TO_SEE_THE_TEST_LOG}" ]] ; then
26 # on request from Diego
27 @@ -483,8 +485,11 @@ enable_cmake-utils_src_test() {
28 else
29 die "Tests failed. When you file a bug, please attach the following file: \n\t${CMAKE_BUILD_DIR}/Testing/Temporary/LastTest.log"
30 fi
31 +
32 + # die might not die due to nonfatal
33 + popd > /dev/null
34 + return 1
35 fi
36 - popd > /dev/null
37 }
38
39 # @FUNCTION: cmake-utils_src_configure