From 7b7b4fe856baecfbe4b36831a88dac298e6bb2b9 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Wed, 20 Nov 2019 20:28:40 +0000 Subject: [PATCH] eclass/tests/toolchain-funcs.sh: fix tc-cpp-is-true tests MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- 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 79ba6fa407b5..4cd4213c2de5 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} -- 2.26.2