File: tests-fail-on-error.diff

package info (click to toggle)
mxml 2.10-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 1,640 kB
  • ctags: 689
  • sloc: ansic: 8,919; xml: 1,551; makefile: 276; sh: 195; cpp: 178
file content (31 lines) | stat: -rw-r--r-- 819 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.9/Makefile.in
===================================================================
--- mxml-2.9.orig/Makefile.in
+++ mxml-2.9/Makefile.in
@@ -359,18 +359,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