# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
+m4_include([common/snippet/at-compat.at])
+m4_include([common/snippet/test-tap.at])
+
AT_INIT
AT_COLOR_TESTS
m4_define([TEST_NEED_PROGRAM], [AT_KEYWORDS([$1])dnl
AT_CHECK([for arg in $check_PROGRAMS; do
-test x"${arg##*/}" != x"$1$EXEEXT" || exit 0
+progexe="$1$EXEEXT"; case $arg in "$progexe"|*/"$progexe") exit 0 ;; esac
done
exit 77])])