summaryrefslogtreecommitdiff
path: root/pkgs/test/checkpointBuild/hello-removeFile.patch
blob: 836bd3056645e36d8ab8424dd6e7f7bbacf5617a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
:100644 100644 0000000 0000000 M	Makefile.in
:100644 000000 0000000 0000000 D	src/additionalFile.c
:100644 100644 0000000 0000000 M	src/hello.c
:100755 100755 0000000 0000000 M	tests/hello-1

diff --git b/Makefile.in a/Makefile.in
index b0f3a3d..7bacfe1 100644
--- b/Makefile.in
+++ a/Makefile.in
@@ -500,7 +500,7 @@ am_lib_libhello_a_OBJECTS = lib/libhello_a-basename-lgpl.$(OBJEXT) \
 	lib/libhello_a-wctype-h.$(OBJEXT) $(am__objects_51) \
 	lib/libhello_a-xmalloc.$(OBJEXT) \
 	lib/libhello_a-xalloc-die.$(OBJEXT) \
-	lib/libhello_a-xstriconv.$(OBJEXT) src/additionalFile.$(OBJEXT)
+	lib/libhello_a-xstriconv.$(OBJEXT)
 lib_libhello_a_OBJECTS = $(am_lib_libhello_a_OBJECTS)
 am_hello_OBJECTS = src/hello.$(OBJEXT)
 hello_OBJECTS = $(am_hello_OBJECTS)
@@ -2557,7 +2557,7 @@ lib_libhello_a_SOURCES = lib/basename-lgpl.c lib/c-ctype.h \
 	$(am__append_51) $(am__append_52) lib/version-etc.h \
 	lib/version-etc.c lib/version-etc-fsf.c lib/wctype-h.c \
 	$(am__append_53) lib/xmalloc.c lib/xalloc-die.c \
-	lib/xstriconv.h lib/xstriconv.c src/additionalFile.c
+	lib/xstriconv.h lib/xstriconv.c
 lib_libhello_a_CFLAGS = $(AM_CFLAGS) $(GL_CFLAG_GNULIB_WARNINGS) $(GL_CFLAG_ALLOW_WARNINGS)
 lib_libhello_a_LIBADD = $(gl_libhello_LIBOBJS)
 lib_libhello_a_DEPENDENCIES = $(gl_libhello_LIBOBJS)
diff --git a/src/additionalFile.c b/src/additionalFile.c
deleted file mode 100644
index 34d683d..0000000
--- a/src/additionalFile.c
+++ /dev/null
@@ -1,6 +0,0 @@
-#include "config.h"
-#include "system.h"
-
-int somefunc() {
-    return 0;
-}
diff --git a/src/hello.c b/src/hello.c
index a8e36dc..53722d9 100644
--- a/src/hello.c
+++ b/src/hello.c
@@ -126,6 +126,10 @@ parse_options (int argc, char *argv[], const char **greeting_msg)
     }
 }
 
+int somefunc() {
+    return 1;
+}
+
 int
 main (int argc, char *argv[])
 {
diff --git a/tests/hello-1 b/tests/hello-1
index 96ffef8..f0b9f8d 100755
--- a/tests/hello-1
+++ b/tests/hello-1
@@ -21,7 +21,7 @@ export LANGUAGE LC_ALL LC_MESSAGES LANG
 
 tmpfiles="hello-test1.ok"
 cat <<EOF > hello-test1.ok
-Hello, world!
+Hello, incremental world!
 EOF
 
 tmpfiles="$tmpfiles hello-test1.out"