summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2020-01-26 22:42:49 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2020-01-26 22:47:07 +0000
commita2478718a9960f7844eee45e6b140fd071447428 (patch)
tree134afbab008be73f3edfdb16a3f2030480ce5be5 /eclass/tests
parentprofiles: alpha/arm/hppa/ia64/ppc32/sparc: Mask media-gfx/gimp[heif] (diff)
downloadgentoo-a2478718a9960f7844eee45e6b140fd071447428.tar.gz
gentoo-a2478718a9960f7844eee45e6b140fd071447428.tar.bz2
gentoo-a2478718a9960f7844eee45e6b140fd071447428.zip
flag-o-matic.eclass: fix probe when CC points to absolute path
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'eclass/tests')
-rwxr-xr-xeclass/tests/flag-o-matic.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/eclass/tests/flag-o-matic.sh b/eclass/tests/flag-o-matic.sh
index 90eaf3a6ffb0..229dff52af94 100755
--- a/eclass/tests/flag-o-matic.sh
+++ b/eclass/tests/flag-o-matic.sh
@@ -139,6 +139,12 @@ out=$(test-flags-CC -O3)
[[ $? -eq 0 && ${out} == "-O3" ]]
ftend
+tbegin "test-flags-CC (valid flags, absolute path)"
+absolute_CC=$(type -P $(tc-getCC))
+out=$(CC=${absolute_CC} test-flags-CC -O3)
+[[ $? -eq 0 && ${out} == "-O3" ]]
+ftend
+
tbegin "test-flags-CC (invalid flags)"
out=$(test-flags-CC -finvalid-flag)
[[ $? -ne 0 && -z ${out} ]]