File: tests-fail-on-error.diff

package info (click to toggle)
mxml 2.12-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 11,080 kB
  • sloc: ansic: 11,174; sh: 3,115; makefile: 249; cpp: 178; xml: 28
file content (31 lines) | stat: -rw-r--r-- 822 bytes parent folder | download
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
Author: Matthias Klose <doko@debian.org>
Description: Allow tests to fail (for testing on build machines)
Forwarded: not-needed
Last-Updated: 2016-08-29

Index: mxml-2.12/Makefile.in
===================================================================
--- mxml-2.12.orig/Makefile.in
+++ mxml-2.12/Makefile.in
@@ -335,18 +335,21 @@ testmxml:	libmxml.a testmxml.o
 		$(RM) temp2.xml temp2s.xml; \
 	else \
 		echo Stdio file test failed!; \
+		false; \
 	fi
 	@if cmp temp1.xml temp1s.xml; then \
 		echo String test passed!; \
 		$(RM) temp1.xml temp1s.xml; \
 	else \
 		echo String test failed!; \
+		false ; \
 	fi
 	@if cmp test.xml test.xmlfd; then \
 		echo File descriptor test passed!; \
 		$(RM) test.xmlfd; \
 	else \
 		echo File descriptor test failed!; \
+		false ; \
 	fi
 
 testmxml-vg:	$(LIBOBJS) testmxml.o