citrun

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

commit ebe69d0c81af8828bb1c921ee43d16110249151f
parent 677d812912ffa4c50f93f36151cb8487aa52dccd
Author: Kyle Milz <kyle@0x30.net>
Date:   Mon,  8 Aug 2016 20:35:03 -0600

t: get this test passing

Diffstat:
Mt/inst_basic_link.t | 34++++++++++++++++++++--------------
1 file changed, 20 insertions(+), 14 deletions(-)

diff --git a/t/inst_basic_link.t b/t/inst_basic_link.t @@ -1,13 +1,8 @@ #!/bin/sh -e +echo 1..5 -echo "1..5" - -tmpdir=`mktemp -d /tmp/citrun.XXXXXXXXXX` -trap "rm -rf $tmpdir" EXIT -echo "ok 1 - tmp dir created" - -export PATH="`pwd`/src:${PATH}" -cd $tmpdir +. test/utils.sh +setup cat <<EOF > main.c int @@ -27,12 +22,23 @@ citrun-check | sed -e "s,'.*',''," > citrun-check.txt echo "ok 4 - processed citrun.log" cat <<EOF > citrun-check.txt.good -Checking ''. - 1 Log files found - 1 Calls to the instrumentation tool - 1 Forked compilers - 1 Instrumentation successes - 1 Application link commands +Checking '' .Done + +Summary: + 1 Log files found + 1 Source files input + 1 Calls to the instrumentation tool + 1 Forked compilers + 1 Instrument successes + 1 Application link commands + +Totals: + 6 Lines of source code + 32 Lines of instrumentation header + 1 Functions called '' + 1 Function definitions + 1 Return statement values + 3 Total statements EOF diff -u citrun-check.txt.good citrun-check.txt