|
Re: QNX *.da files does it collects cumulative across two different test cases.
|
11/02/2009 7:16 AM
post41135
|
Re: QNX *.da files does it collects cumulative across two different test cases.
I have done with your simple.c program
#qcc -V2.95.3,gcc_ntomipsbe -Wc, -fprofile-arcs -Wc, -ftest-coverage -c -o simple.o simple.c
#qcc -V2.95.3,gcc_ntomipsbe -o simple simple.o /vobs/projects/springboard/tps/qnx/target/qnx6/mipsbe/lib/libc.a -
Bstatic
# ./simple
bar
# ./simple 1
foo
# ./simple 2
foo
# ./simple 3
foo
#ntomips-gcov-2.95.3 simple.c
83.33% of 6 source lines executed in file simple.c
Creating simple.c.gcov.
#cat simple.c.gcov
#include <stdio.h>
int main(int argc, char *argv[]) {
1 if (argc > 1) {
1 printf("foo\n");
1 } else {
###### printf("bar\n");
1 }
1 }
here it got the data which was last executed.
i had attached all the simple.c, libc.a, simple.bb, simple.bbg and simple.c.gcov all i had used, please let me know
where might be wrong here.
the filesystem here where I am running this program is DRAM based file system.
I tried the same simple.c with 3.3.5 its going through fine here.
|
|
|