enable libxml2 memory debug before loading libxslt since libxslt
authorDaniel Veillard <veillard@src.gnome.org>
Sun, 24 Nov 2002 14:51:51 +0000 (14:51 +0000)
committerDaniel Veillard <veillard@src.gnome.org>
Sun, 24 Nov 2002 14:51:51 +0000 (14:51 +0000)
* 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

ChangeLog
python/tests/basic.py
python/tests/exslt.py
python/tests/extfunc.py
python/tests/pyxsltproc.py

index 5d58c26..7cd1bb9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * python/libxsl.py: updated with new version from Stéphane Bidoul
index 086ec5c..89a57ac 100755 (executable)
@@ -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")
index 3a69baa..c64b2e4 100755 (executable)
@@ -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()
index 9a65b12..8d505e5 100755 (executable)
@@ -2,10 +2,9 @@
 import sys
 import string
 import libxml2
-import libxslt
-
 # Memory debug specific
 libxml2.debugMemory(1)
+import libxslt
 
 nodeName = None
 
index 3fe12f7..8570097 100755 (executable)
@@ -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