1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-07-28 04:41:59 +03:00

enable libxml2 memory debug before loading libxslt since libxslt

* python/tests/*.py: enable libxml2 memory debug before
  loading libxslt since libxslt initialization now includes
  EXSLT registration which initialize the libxml2 library and
  allocate memory
Daniel
This commit is contained in:
Daniel Veillard
2002-11-24 14:51:51 +00:00
parent 0e453d81ed
commit 0a04c030c7
5 changed files with 19 additions and 16 deletions

View File

@ -1,10 +1,10 @@
#!/usr/bin/python -u
import sys
import libxml2
import libxslt
# Memory debug specific
libxml2.debugMemory(1)
import libxslt
styledoc = libxml2.parseFile("test.xsl")

View File

@ -1,10 +1,9 @@
#!/usr/bin/python -u
import sys
import libxml2
import libxslt
# Memory debug specific
#libxml2.debugMemory(1)
libxml2.debugMemory(1)
import libxslt
styledoc = libxml2.parseDoc(
@ -49,10 +48,9 @@ if stringval != expect:
sys.exit(255)
# Memory debug specific
#libxslt.cleanup()
#if libxml2.debugMemory(1) == 0:
# print "OK"
#else:
# print "Memory leak %d bytes" % (libxml2.debugMemory(1))
# libxml2.dumpMemory()
print "OK"
libxslt.cleanup()
if libxml2.debugMemory(1) == 0:
print "OK"
else:
print "Memory leak %d bytes" % (libxml2.debugMemory(1))
libxml2.dumpMemory()

View File

@ -2,10 +2,9 @@
import sys
import string
import libxml2
import libxslt
# Memory debug specific
libxml2.debugMemory(1)
import libxslt
nodeName = None

View File

@ -9,10 +9,9 @@ import time
import posix
import string
import libxml2
import libxslt
# Memory debug specific
libxml2.debugMemory(1)
import libxslt
debug = 0
repeat = 0