citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit 80abfcd3ed6e9abfc1c4f2084187867934022c63
parent 287b122420f21023e53217d6ad86c9d1b72797a8
Author: Kyle Milz <kyle@0x30.net>
Date:   Wed, 28 Dec 2016 12:36:44 -0700

t: save and restore PATH so rm is always found

Diffstat:
Mt/inst_path.sh | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/t/inst_path.sh b/t/inst_path.sh @@ -7,9 +7,9 @@ . t/utils.subr plan 2 -# Hang onto an absolute reference to 'expr' for libtap. +# Save PATH to restore it later. ok_program needs 'expr' to count too. +OLDPATH="${PATH}" alias expr=`which expr` -alias rm=`which rm` unset PATH output_good='citrun_inst: Error: PATH is not set.' @@ -20,3 +20,5 @@ export PATH="" output_good="citrun_inst: Error: CITRUN_SHARE not in PATH." ok_program "run citrun_inst as cc with empty PATH" 1 "$output_good" \ $treedir/src/cc -c nomatter.c 2> /dev/null + +export PATH="${OLDPATH}"