Update of /cvsroot/monetdb/pathfinder/tests/BugTracker/Tests
In directory
23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv22288/tests/BugTracker/Tests
Added Files:
hang_non_existing_doc.SF-1911209.XQUERY.py
Log Message:
propagated changes of Friday Jul 31 2009
from the May2009 branch to the development trunk
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2009/07/31 - sjoerd:
tests/BugTracker/Tests/hang_non_existing_doc.SF-1911209.XQUERY.py,1.1.2.1
Added test for long fixed bug.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--- NEW FILE: hang_non_existing_doc.SF-1911209.XQUERY.py ---
import os, sys
try:
import subprocess
except ImportError:
# user private copy for old Python versions
import MonetDBtesting.subprocess26 as subprocess
def client(cmd, input = None):
clt = subprocess.Popen(cmd,
stdin = subprocess.PIPE,
stdout = subprocess.PIPE,
stderr = subprocess.PIPE,
universal_newlines = True)
out, err = clt.communicate(input)
sys.stdout.write(out)
sys.stderr.write(err)
def main():
xq_client = os.getenv('XQUERY_CLIENT').split()
# HACK ALERT: create updatable document by appending ,10 to collection name
client(xq_client + ['--input=doc1911209.xml',
'--collection=doc1911209.xml,10'],
'<aap/>')
client(xq_client + ['-s', 'do insert <beer/> into
doc("doc1911209.xml")/aap'])
for i in range(1000):
client(xq_client + ['-s', 'pf:documents()'])
client(xq_client + ['-s', 'doc("does_not_exist.xml")'])
client(xq_client + ['-s', 'pf:del-doc("doc1911209.xml")'])
main()
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins