citrun

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

commit 0deb33cfc66ec619f9e4ef668a1b6e67677bc0d5
parent d4a30e3b071398e1e49bb6d2ec4594c4535f1396
Author: Kyle Milz <kyle@0x30.net>
Date:   Wed, 27 Jul 2016 00:07:59 -0600

t: add test for CITRUN_PATH in PATH

Diffstat:
At/inst_citrunpath.t | 12++++++++++++
1 file changed, 12 insertions(+), 0 deletions(-)

diff --git a/t/inst_citrunpath.t b/t/inst_citrunpath.t @@ -0,0 +1,12 @@ +#!/bin/sh + +# Test that not having CITRUN_PATH (defined at build) in PATH errors out. +# +echo 1..1 +export PATH="" + +src/gcc -c nomatter.c 2> /dev/null + +if [ $? -eq 1 ]; then + echo ok 1 +fi