mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-07-29 15:41:13 +03:00
Make sure that Python tests exit with error code
This commit is contained in:
@ -19,10 +19,15 @@ CLEANFILES = *.pyc core
|
|||||||
|
|
||||||
if WITH_PYTHON
|
if WITH_PYTHON
|
||||||
tests: $(TESTSPY)
|
tests: $(TESTSPY)
|
||||||
-@(PYTHONPATH="`pwd`/..:`pwd`/../.libs:$(srcdir)/.."; \
|
@(PYTHONPATH="`pwd`/..:`pwd`/../.libs:$(srcdir)/.."; \
|
||||||
if test "x$(LIBXML_SRC)" != "x" ; then PYTHONPATH="$$PYTHONPATH:$(LIBXML_SRC)/python:$(LIBXML_SRC)/python/.libs"; fi; \
|
if test "x$(LIBXML_SRC)" != "x" ; then \
|
||||||
|
PYTHONPATH="$$PYTHONPATH:$(LIBXML_SRC)/python:$(LIBXML_SRC)/python/.libs"; \
|
||||||
|
fi; \
|
||||||
export PYTHONPATH; \
|
export PYTHONPATH; \
|
||||||
for test in $(TESTSPY) ; do echo "-- $$test" ; (cd $(srcdir) && $(PYTHON) $$test ); done)
|
for test in $(TESTSPY) ; do \
|
||||||
|
echo "-- $$test" ; \
|
||||||
|
(cd $(srcdir) && $(PYTHON) $$test ) || exit 1; \
|
||||||
|
done)
|
||||||
else
|
else
|
||||||
tests:
|
tests:
|
||||||
endif
|
endif
|
||||||
|
@ -27,3 +27,4 @@ if libxml2.debugMemory(1) == 0:
|
|||||||
else:
|
else:
|
||||||
print "Memory leak %d bytes" % (libxml2.debugMemory(1))
|
print "Memory leak %d bytes" % (libxml2.debugMemory(1))
|
||||||
libxml2.dumpMemory()
|
libxml2.dumpMemory()
|
||||||
|
sys.exit(255)
|
||||||
|
@ -54,3 +54,4 @@ if libxml2.debugMemory(1) == 0:
|
|||||||
else:
|
else:
|
||||||
print "Memory leak %d bytes" % (libxml2.debugMemory(1))
|
print "Memory leak %d bytes" % (libxml2.debugMemory(1))
|
||||||
libxml2.dumpMemory()
|
libxml2.dumpMemory()
|
||||||
|
sys.exit(255)
|
||||||
|
@ -87,3 +87,4 @@ if libxml2.debugMemory(1) == 0:
|
|||||||
else:
|
else:
|
||||||
print "Memory leak %d bytes" % (libxml2.debugMemory(1))
|
print "Memory leak %d bytes" % (libxml2.debugMemory(1))
|
||||||
libxml2.dumpMemory()
|
libxml2.dumpMemory()
|
||||||
|
sys.exit(255)
|
||||||
|
@ -64,3 +64,4 @@ if libxml2.debugMemory(1) == 0:
|
|||||||
else:
|
else:
|
||||||
print "Memory leak %d bytes" % (libxml2.debugMemory(1))
|
print "Memory leak %d bytes" % (libxml2.debugMemory(1))
|
||||||
libxml2.dumpMemory()
|
libxml2.dumpMemory()
|
||||||
|
sys.exit(255)
|
||||||
|
Reference in New Issue
Block a user