commit:     7b7b4fe856baecfbe4b36831a88dac298e6bb2b9
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 20 20:28:40 2019 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Wed Nov 20 20:30:19 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b7b4fe8

eclass/tests/toolchain-funcs.sh: fix tc-cpp-is-true tests

The test was failing on systems without clang because presence
of compiler was tested incorrectly (${compielr} typo).

Reported-by: Michał Górny
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 eclass/tests/toolchain-funcs.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eclass/tests/toolchain-funcs.sh b/eclass/tests/toolchain-funcs.sh
index 79ba6fa407b..4cd4213c2de 100755
--- a/eclass/tests/toolchain-funcs.sh
+++ b/eclass/tests/toolchain-funcs.sh
@@ -172,8 +172,8 @@ if type -P pathcc &>/dev/null; then
        tend $?
 fi
 
-for compiler in gcc clang; do
-       if type -P ${compielr} &>/dev/null; then
+for compiler in gcc clang not-really-a-compiler; do
+       if type -P ${compiler} &>/dev/null; then
                tbegin "tc-cpp-is-true ($compiler, defined)"
                (
                        export CC=${compiler}

Reply via email to