citrun

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

commit 27b3c603702ff5af34c484df7f2b262db9dcd5d0
parent 798677647a7bc304e2aa96194a1d5f9d51263fee
Author: Kyle Milz <kyle@0x30.net>
Date:   Sun, 18 Dec 2016 17:25:59 -0700

t: simplify test by realizing citrun_node_add is reachable

Diffstat:
Mt/lib_badver.sh | 9+++------
1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/t/lib_badver.sh b/t/lib_badver.sh @@ -1,13 +1,11 @@ #!/bin/sh -u # -# Check that linking object files of one citrun version with libcitrun of +# Check that linking object files of one citrun version with libcitrun.a of # another errors. # . t/utils.subr -plan 3 +plan 2 -# Hang onto the source location before entering the temp dir. -src_dir="`pwd`/src" enter_tmpdir cat <<EOF > main.c @@ -20,8 +18,7 @@ main(int argc, char *argv[]) } EOF -ok "compile fake node" cc -include $src_dir/lib.h -c main.c -ok "link fake node to libcitrun.a" cc -o main main.o $src_dir/libcitrun.a +ok "is compiled" cc -o main main.c output_good="main: libcitrun-0.0: incompatible version 0.255, try cleaning and rebuilding your project" ok_program "running fake node" 1 "$output_good" ./main