import sys
import libxml2
#memory debug specific
global called
#
# test that access to the XPath evaluation contexts
#
return x + 1
return "%d" % (x + 2)
print "xpath query: wrong node set size"
print "xpath query: wrong node set value"
i = 10000
while i > 0:
if res != 2:
print "xpath extension failure"
i = i - 1
i = 10000
while i > 0:
if res != "3":
print "xpath extension failure got %s expecting '3'"
i = i - 1
if called != "foo":
print "xpath function: failed to access the context"
print "xpath function: %s" % (called)
#memory debug specific
print "OK"
else: