citrun

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

commit 63ae70829d1b2a0fdbe512e06dc6fc477c291285
parent 336f512c88339cbfd47baf018e8e897769ebca49
Author: Kyle Milz <kyle@0x30.net>
Date:   Sun, 31 Jul 2016 19:23:53 -0600

t: don't leak tmp files

Diffstat:
Mt/inst_preprocess.t | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/t/inst_preprocess.t b/t/inst_preprocess.t @@ -2,13 +2,13 @@ echo 1..2 -tmpfile=`mktemp`.c +tmpfile=`mktemp` logfile=`mktemp` echo "int main(void) { return 0; }" > $tmpfile export PATH="`pwd`/src:${PATH}" -gcc -E $tmpfile > $logfile 2>&1 +gcc -x c -E $tmpfile > $logfile 2>&1 [ $? -eq 0 ] && echo ok 1 grep -q "int main(void) { return 0; }" $logfile && echo ok 2