mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-07-29 15:41:13 +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,3 +1,10 @@
|
|||||||
|
Sun Nov 24 15:49:58 CET 2002 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
|
* 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
|
||||||
|
|
||||||
Sun Nov 24 13:58:48 CET 2002 Daniel Veillard <daniel@veillard.com>
|
Sun Nov 24 13:58:48 CET 2002 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* python/libxsl.py: updated with new version from St<53>phane Bidoul
|
* python/libxsl.py: updated with new version from St<53>phane Bidoul
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
#!/usr/bin/python -u
|
#!/usr/bin/python -u
|
||||||
import sys
|
import sys
|
||||||
import libxml2
|
import libxml2
|
||||||
import libxslt
|
|
||||||
|
|
||||||
# Memory debug specific
|
# Memory debug specific
|
||||||
libxml2.debugMemory(1)
|
libxml2.debugMemory(1)
|
||||||
|
import libxslt
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
styledoc = libxml2.parseFile("test.xsl")
|
styledoc = libxml2.parseFile("test.xsl")
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
#!/usr/bin/python -u
|
#!/usr/bin/python -u
|
||||||
import sys
|
import sys
|
||||||
import libxml2
|
import libxml2
|
||||||
import libxslt
|
|
||||||
|
|
||||||
# Memory debug specific
|
# Memory debug specific
|
||||||
#libxml2.debugMemory(1)
|
libxml2.debugMemory(1)
|
||||||
|
import libxslt
|
||||||
|
|
||||||
|
|
||||||
styledoc = libxml2.parseDoc(
|
styledoc = libxml2.parseDoc(
|
||||||
@ -49,10 +48,9 @@ if stringval != expect:
|
|||||||
sys.exit(255)
|
sys.exit(255)
|
||||||
|
|
||||||
# Memory debug specific
|
# Memory debug specific
|
||||||
#libxslt.cleanup()
|
libxslt.cleanup()
|
||||||
#if libxml2.debugMemory(1) == 0:
|
if libxml2.debugMemory(1) == 0:
|
||||||
# print "OK"
|
print "OK"
|
||||||
#else:
|
else:
|
||||||
# print "Memory leak %d bytes" % (libxml2.debugMemory(1))
|
print "Memory leak %d bytes" % (libxml2.debugMemory(1))
|
||||||
# libxml2.dumpMemory()
|
libxml2.dumpMemory()
|
||||||
print "OK"
|
|
||||||
|
@ -2,10 +2,9 @@
|
|||||||
import sys
|
import sys
|
||||||
import string
|
import string
|
||||||
import libxml2
|
import libxml2
|
||||||
import libxslt
|
|
||||||
|
|
||||||
# Memory debug specific
|
# Memory debug specific
|
||||||
libxml2.debugMemory(1)
|
libxml2.debugMemory(1)
|
||||||
|
import libxslt
|
||||||
|
|
||||||
nodeName = None
|
nodeName = None
|
||||||
|
|
||||||
|
@ -9,10 +9,9 @@ import time
|
|||||||
import posix
|
import posix
|
||||||
import string
|
import string
|
||||||
import libxml2
|
import libxml2
|
||||||
import libxslt
|
|
||||||
|
|
||||||
# Memory debug specific
|
# Memory debug specific
|
||||||
libxml2.debugMemory(1)
|
libxml2.debugMemory(1)
|
||||||
|
import libxslt
|
||||||
|
|
||||||
debug = 0
|
debug = 0
|
||||||
repeat = 0
|
repeat = 0
|
||||||
|
Reference in New Issue
Block a user