@@ -11,42 +11,42 @@ RUN: test -f instrprof-shared-lib.gcno
11
11
RUN: %clang -DEXIT_ABRUPTLY -DSHARED_CALL_BEFORE_GCOV_FLUSH -DSHARED_CALL_AFTER_GCOV_FLUSH --coverage -o %t -L%t.d -rpath %t.d -lfunc %S/Inputs/instrprof-shared-main-gcov-flush.c
12
12
RUN: test -f instrprof-shared-main-gcov-flush.gcno
13
13
14
+ RUN: rm -f instrprof-shared-main-gcov-flush.gcda instrprof-shared-lib.gcda
14
15
RUN: %run %t
15
16
RUN: llvm-cov gcov instrprof-shared-main-gcov-flush.gcda
16
17
RUN: FileCheck --match-full-lines --strict-whitespace --input-file instrprof-shared-main-gcov-flush.c.gcov %S/Inputs/instrprof-shared-main-gcov-flush_no-writeout.c.gcov
17
18
RUN: llvm-cov gcov instrprof-shared-lib.gcda
18
19
RUN: FileCheck --match-full-lines --strict-whitespace --input-file instrprof-shared-lib.c.gcov %S/Inputs/instrprof-shared-lib.c.gcov
19
- RUN: rm instrprof-shared-main-gcov-flush.gcda instrprof-shared-lib.gcda
20
20
21
21
# Test the case where we exit normally and we have a call to the shared library function before __gcov_flush.
22
22
RUN: %clang -DSHARED_CALL_BEFORE_GCOV_FLUSH --coverage -o %t -L%t.d -rpath %t.d -lfunc %S/Inputs/instrprof-shared-main-gcov-flush.c
23
23
RUN: test -f instrprof-shared-main-gcov-flush.gcno
24
24
25
+ RUN: rm -f instrprof-shared-main-gcov-flush.gcda instrprof-shared-lib.gcda
25
26
RUN: %run %t
26
27
RUN: llvm-cov gcov instrprof-shared-main-gcov-flush.gcda
27
28
RUN: FileCheck --match-full-lines --strict-whitespace --input-file instrprof-shared-main-gcov-flush.c.gcov %S/Inputs/instrprof-shared-main-gcov-flush_shared-call-before.c.gcov
28
29
RUN: llvm-cov gcov instrprof-shared-lib.gcda
29
30
RUN: FileCheck --match-full-lines --strict-whitespace --input-file instrprof-shared-lib.c.gcov %S/Inputs/instrprof-shared-lib.c.gcov
30
- RUN: rm instrprof-shared-main-gcov-flush.gcda instrprof-shared-lib.gcda
31
31
32
32
# Test the case where we exit normally and we have a call to the shared library function after __gcov_flush.
33
33
RUN: %clang -DSHARED_CALL_AFTER_GCOV_FLUSH --coverage -o %t -L%t.d -rpath %t.d -lfunc %S/Inputs/instrprof-shared-main-gcov-flush.c
34
34
RUN: test -f instrprof-shared-main-gcov-flush.gcno
35
35
36
+ RUN: rm -f instrprof-shared-main-gcov-flush.gcda instrprof-shared-lib.gcda
36
37
RUN: %run %t
37
38
RUN: llvm-cov gcov instrprof-shared-main-gcov-flush.gcda
38
39
RUN: FileCheck --match-full-lines --strict-whitespace --input-file instrprof-shared-main-gcov-flush.c.gcov %S/Inputs/instrprof-shared-main-gcov-flush_shared-call-after.c.gcov
39
40
RUN: llvm-cov gcov instrprof-shared-lib.gcda
40
41
RUN: FileCheck --match-full-lines --strict-whitespace --input-file instrprof-shared-lib.c.gcov %S/Inputs/instrprof-shared-lib.c.gcov
41
- RUN: rm instrprof-shared-main-gcov-flush.gcda instrprof-shared-lib.gcda
42
42
43
43
# Test the case where we exit normally and we have calls to the shared library function before and after __gcov_flush.
44
44
RUN: %clang -DSHARED_CALL_BEFORE_GCOV_FLUSH -DSHARED_CALL_AFTER_GCOV_FLUSH --coverage -o %t -L%t.d -rpath %t.d -lfunc %S/Inputs/instrprof-shared-main-gcov-flush.c
45
45
RUN: test -f instrprof-shared-main-gcov-flush.gcno
46
46
47
+ RUN: rm -f instrprof-shared-main-gcov-flush.gcda instrprof-shared-lib.gcda
47
48
RUN: %run %t
48
49
RUN: llvm-cov gcov instrprof-shared-main-gcov-flush.gcda
49
50
RUN: FileCheck --match-full-lines --strict-whitespace --input-file instrprof-shared-main-gcov-flush.c.gcov %S/Inputs/instrprof-shared-main-gcov-flush_shared-call-before-after.c.gcov
50
51
RUN: llvm-cov gcov instrprof-shared-lib.gcda
51
52
RUN: FileCheck --match-full-lines --strict-whitespace --input-file instrprof-shared-lib.c.gcov %S/Inputs/instrprof-shared-lib_called-twice.c.gcov
52
- RUN: rm instrprof-shared-main-gcov-flush.gcda instrprof-shared-lib.gcda
0 commit comments