citrun

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

commit 1de1c67e01f24729e41e27fe7fc6861c7e706055
parent 6a3c07cc239757bd7698ddea7df33e9574d18d60
Author: Kyle Milz <kyle@0x30.net>
Date:   Sat, 20 Aug 2016 12:26:05 -0600

t: modify tests to call cc rather than gcc

Diffstat:
Mt/inst_fail.sh | 2+-
Mt/inst_path.sh | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/t/inst_fail.sh b/t/inst_fail.sh @@ -6,7 +6,7 @@ echo 1..4 echo "int main(void) { return 0; " > bad.c -$TEST_TOOLS/citrun-wrap gcc -c bad.c 2> err.out +$TEST_TOOLS/citrun-wrap cc -c bad.c 2> err.out [ $? -eq 1 ] && echo ok 2 grep -q "error: expected" err.out && echo ok 3 diff --git a/t/inst_path.sh b/t/inst_path.sh @@ -27,11 +27,11 @@ cd $tmpdir grep=`which grep` unset PATH -$TEST_TOOLS/gcc -c nomatter.c +$TEST_TOOLS/cc -c nomatter.c [ $? -eq 1 ] && echo ok 2 export PATH="" -$TEST_TOOLS/gcc -c nomatter.c 2> /dev/null +$TEST_TOOLS/cc -c nomatter.c 2> /dev/null [ $? -eq 1 ] && echo ok 3 $cat <<EOF > citrun.log.good