Debian Codegraph @

debian/patches/3-lcovfix.patch

raw
1 diff --git a/test cases/common/1 trivial/trivial.c b/test cases/common/1 trivial/trivial.c
2 index 96612d48b..ad19a4a60 100644
3 --- a/test cases/common/1 trivial/trivial.c
4 +++ b/test cases/common/1 trivial/trivial.c
5 @@ -1,6 +1,11 @@
6 #include<stdio.h>
7
8 -int main(void) {
9 +int main(int argc, char **argv) {
10 + /* Have a non-elidable branch to make sure coverage info is not empty. */
11 + if(argc > 1) {
12 + printf("A command line argument was passed to the program.\n");
13 + (void)argv;
14 + }
15 printf("Trivial test is working.\n");
16 return 0;
17 }
18 diff --git a/test cases/common/243 escape++/test.c b/test cases/common/243 escape++/test.c
19 index 9b6bdc2ec..4a82fd3f6 100644
20 --- a/test cases/common/243 escape++/test.c
21 +++ b/test cases/common/243 escape++/test.c
22 @@ -1,3 +1,9 @@
23 -int main(void) {
24 +#include <stdio.h>
25 +
26 +int main(int argc, char **argv) {
27 + if(argc > 1) {
28 + printf("A command line argument was passed to this program.\n");
29 + (void)argv;
30 + }
31 return 0;
32 }