diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2002-11-24 14:51:51 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2002-11-24 14:51:51 +0000 |
commit | 0a04c030c73d20c7f99dc0818a8cdb484a0e5a17 (patch) | |
tree | ef0737ea06654e5c973fe289838b9b77917b4308 /python | |
parent | 0e453d81ed8dcc417f19a7b60e2772459eba04df (diff) | |
download | libxslt-0a04c030c73d20c7f99dc0818a8cdb484a0e5a17.tar.gz libxslt-0a04c030c73d20c7f99dc0818a8cdb484a0e5a17.tar.bz2 libxslt-0a04c030c73d20c7f99dc0818a8cdb484a0e5a17.zip |
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
Diffstat (limited to 'python')
-rwxr-xr-x | python/tests/basic.py | 4 | ||||
-rwxr-xr-x | python/tests/exslt.py | 18 | ||||
-rwxr-xr-x | python/tests/extfunc.py | 3 | ||||
-rwxr-xr-x | python/tests/pyxsltproc.py | 3 |
4 files changed, 12 insertions, 16 deletions
diff --git a/python/tests/basic.py b/python/tests/basic.py index 086ec5c0..89a57ac1 100755 --- a/python/tests/basic.py +++ b/python/tests/basic.py @@ -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") diff --git a/python/tests/exslt.py b/python/tests/exslt.py index 3a69baa7..c64b2e43 100755 --- a/python/tests/exslt.py +++ b/python/tests/exslt.py @@ -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() diff --git a/python/tests/extfunc.py b/python/tests/extfunc.py index 9a65b123..8d505e53 100755 --- a/python/tests/extfunc.py +++ b/python/tests/extfunc.py @@ -2,10 +2,9 @@ import sys import string import libxml2 -import libxslt - # Memory debug specific libxml2.debugMemory(1) +import libxslt nodeName = None diff --git a/python/tests/pyxsltproc.py b/python/tests/pyxsltproc.py index 3fe12f71..85700971 100755 --- a/python/tests/pyxsltproc.py +++ b/python/tests/pyxsltproc.py @@ -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 |