commit a0073f27d48c3994218417a713fdec4b08552a1c
parent 1de837ea4a6cc5cfee6dcc44845cfa8a05b738e2
Author: Kyle Milz <kyle@0x30.net>
Date: Sun, 7 Aug 2016 20:52:44 -0600
t: use -c switch to reduce logging output
Diffstat:
3 files changed, 6 insertions(+), 9 deletions(-)
diff --git a/t/inst_for.t b/t/inst_for.t
@@ -35,8 +35,7 @@ cat <<EOF > citrun.log.good
citrun-inst v0.0 () called as ''.
Command line is ''.
Found source file ''.
-Object arg = 0, compile arg = 0
-Link detected, adding '' to command line.
+Object arg = 0, compile arg = 1
Added clangtool argument ''.
Instrumentation of '' finished:
11 Lines of source code
@@ -55,7 +54,7 @@ Modified source written successfully.
Instrumentation successful.
EOF
-citrun-inst for.c
+citrun-inst -c for.c
diff -u for.c.inst_good for.c.citrun && echo "ok 2 - instrumented source diff"
diff --git a/t/inst_if.t b/t/inst_if.t
@@ -49,8 +49,7 @@ cat <<EOF > citrun.log.good
citrun-inst v0.0 () called as ''.
Command line is ''.
Found source file ''.
-Object arg = 0, compile arg = 0
-Link detected, adding '' to command line.
+Object arg = 0, compile arg = 1
Added clangtool argument ''.
Instrumentation of '' finished:
18 Lines of source code
@@ -69,7 +68,7 @@ Modified source written successfully.
Instrumentation successful.
EOF
-citrun-inst if.c
+citrun-inst -c if.c
diff -u if.c.inst_good if.c.citrun && echo "ok 2 - instrumented source diff"
diff --git a/t/inst_switch.t b/t/inst_switch.t
@@ -43,8 +43,7 @@ cat <<EOF > citrun.log.good
citrun-inst v0.0 () called as ''.
Command line is ''.
Found source file ''.
-Object arg = 0, compile arg = 0
-Link detected, adding '' to command line.
+Object arg = 0, compile arg = 1
Added clangtool argument ''.
Instrumentation of '' finished:
15 Lines of source code
@@ -63,7 +62,7 @@ Modified source written successfully.
Instrumentation successful.
EOF
-citrun-inst switch.c
+citrun-inst -c switch.c
diff -u switch.c.inst_good switch.c.citrun && echo "ok 2 - instrumented source diff"