diff options
Diffstat (limited to 'eclass/tests')
-rwxr-xr-x | eclass/tests/flag-o-matic.sh | 6 |
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} ]] |