From 2e12b0244a066da07ae581ac0648cb20856c76ef Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Sat, 6 Aug 2022 23:27:59 +0200 Subject: vim/test.sh: use ${CPP:-cpp} instead of hardcoding to cpp --- vim/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vim/test.sh b/vim/test.sh index aaf4051..a94a76e 100755 --- a/vim/test.sh +++ b/vim/test.sh @@ -32,7 +32,7 @@ for t in $TESTS; do printf "Running test %s with %s ... " "$t" "$e" rm -f "$OUT" "$ERR" [ "$e" = "$VIM" ] && EDITOR="$VIM -u NONE -U NONE -N -i NONE" - { cat "$t.keys"; printf ":w! $OUT:qall!\n"; } | cpp -P 2>/dev/null | sed 's/[ \t]*$//' | ../util/keys | $EDITOR "$t.in" >/dev/null 2>&1 + { cat "$t.keys"; printf ":w! $OUT:qall!\n"; } | ${CPP:-cpp} -P 2>/dev/null | sed 's/[ \t]*$//' | ../util/keys | $EDITOR "$t.in" >/dev/null 2>&1 if [ "$e" = "$VIM" ]; then if [ -e "$REF" ]; then if cmp -s "$REF" "$OUT"; then -- cgit v1.2.3