Skip to content

Commit

Permalink
vim/test.sh: use ${CPP:-cpp} instead of hardcoding to cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
lanodan authored and Felix Van der Jeugt committed Aug 7, 2023
1 parent c8bd926 commit 2e12b02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vim/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "<Escape>:w! $OUT<Enter>:qall!<Enter>\n"; } | cpp -P 2>/dev/null | sed 's/[ \t]*$//' | ../util/keys | $EDITOR "$t.in" >/dev/null 2>&1
{ cat "$t.keys"; printf "<Escape>:w! $OUT<Enter>:qall!<Enter>\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
Expand Down

0 comments on commit 2e12b02

Please sign in to comment.