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:
@ -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")
|
||||
|
@ -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()
|
||||
|
@ -2,10 +2,9 @@
|
||||
import sys
|
||||
import string
|
||||
import libxml2
|
||||
import libxslt
|
||||
|
||||
# Memory debug specific
|
||||
libxml2.debugMemory(1)
|
||||
import libxslt
|
||||
|
||||
nodeName = None
|
||||
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user