From: Sergei Trofimovich Date: Wed, 20 Nov 2019 19:49:35 +0000 (+0000) Subject: eclass/tests/flag-o-matic.sh: fix strip-unsupported-flags -B* set of tests X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3b75b027410fa2f5aca262794173086ec6b19d90;p=gentoo.git eclass/tests/flag-o-matic.sh: fix strip-unsupported-flags -B* set of tests Don't know how I tested previous state, it certainly could not work. The fix itself is fine though. The change updates expected output. Reported-by: Michał Górny Bug: https://bugs.gentoo.org/687198 Signed-off-by: Sergei Trofimovich --- diff --git a/eclass/tests/flag-o-matic.sh b/eclass/tests/flag-o-matic.sh index 691b052c3d43..b0b97ea0bc1e 100755 --- a/eclass/tests/flag-o-matic.sh +++ b/eclass/tests/flag-o-matic.sh @@ -63,7 +63,7 @@ CXXFLAGS="-O2 -B/foo -O1" LDFLAGS="-O2 -B/foo -O1" tbegin "strip-unsupported-flags for '-B/foo'" strip-unsupported-flags -[[ ${CFLAGS} == "-O2 -O1" ]] && [[ ${CXXFLAGS} == "-O2 -O1" ]] && [[ ${LDFLAGS} == "" ]] +[[ ${CFLAGS} == "-O2 -B/foo -O1" ]] && [[ ${CXXFLAGS} == "-O2 -B/foo -O1" ]] && [[ ${LDFLAGS} == "-O2 -B/foo -O1" ]] ftend CFLAGS="-O2 -B /foo -O1" @@ -71,7 +71,7 @@ CXXFLAGS="-O2 -B /foo -O1" LDFLAGS="-O2 -B /foo -O1" tbegin "strip-unsupported-flags for '-B /foo'" strip-unsupported-flags -[[ ${CFLAGS} == "-O2 -O1" ]] && [[ ${CXXFLAGS} == "-O2 -O1" ]] && [[ ${LDFLAGS} == "" ]] +[[ ${CFLAGS} == "-O2 -B /foo -O1" ]] && [[ ${CXXFLAGS} == "-O2 -B /foo -O1" ]] && [[ ${LDFLAGS} == "-O2 -B /foo -O1" ]] ftend for var in $(all-flag-vars) ; do