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
|
||||
tests: $(TESTSPY)
|
||||
-@(PYTHONPATH="`pwd`/..:`pwd`/../.libs:$(srcdir)/.."; \
|
||||
if test "x$(LIBXML_SRC)" != "x" ; then PYTHONPATH="$$PYTHONPATH:$(LIBXML_SRC)/python:$(LIBXML_SRC)/python/.libs"; fi; \
|
||||
@(PYTHONPATH="`pwd`/..:`pwd`/../.libs:$(srcdir)/.."; \
|
||||
if test "x$(LIBXML_SRC)" != "x" ; then \
|
||||
PYTHONPATH="$$PYTHONPATH:$(LIBXML_SRC)/python:$(LIBXML_SRC)/python/.libs"; \
|
||||
fi; \
|
||||
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
|
||||
tests:
|
||||
endif
|
||||
|
@ -27,3 +27,4 @@ if libxml2.debugMemory(1) == 0:
|
||||
else:
|
||||
print "Memory leak %d bytes" % (libxml2.debugMemory(1))
|
||||
libxml2.dumpMemory()
|
||||
sys.exit(255)
|
||||
|
@ -54,3 +54,4 @@ if libxml2.debugMemory(1) == 0:
|
||||
else:
|
||||
print "Memory leak %d bytes" % (libxml2.debugMemory(1))
|
||||
libxml2.dumpMemory()
|
||||
sys.exit(255)
|
||||
|
@ -87,3 +87,4 @@ if libxml2.debugMemory(1) == 0:
|
||||
else:
|
||||
print "Memory leak %d bytes" % (libxml2.debugMemory(1))
|
||||
libxml2.dumpMemory()
|
||||
sys.exit(255)
|
||||
|
@ -64,3 +64,4 @@ if libxml2.debugMemory(1) == 0:
|
||||
else:
|
||||
print "Memory leak %d bytes" % (libxml2.debugMemory(1))
|
||||
libxml2.dumpMemory()
|
||||
sys.exit(255)
|
||||
|
Reference in New Issue
Block a user