From 09420c7d10add24511ee39e66de07c8c136d7b12 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Fri, 2 Jun 2017 22:51:58 +0200 Subject: tests: ensure we test the xe we built Found by Nicolas Braud-Santoni. Fixes #3. --- tests | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests b/tests index 07b68e1..ab9d615 100755 --- a/tests +++ b/tests @@ -4,6 +4,7 @@ printf '1..44\n' set -e : ${XE:=./xe} +xe() { printf 'Tried to run xe directly, use $XE.\n' 2>&1; exit 111; } necho() { for a; do printf '%s\n' "$a"; done; } @@ -175,7 +176,7 @@ check_output 'with ITER' '$XE -a -s "echo \$ITER" -- a b c' </dev/stderr; echo 2; } | xe echo' </dev/stderr; echo 2; } | $XE echo' <