Update of /cvsroot/monetdb/sql/src/test/BugTracker/Tests
In directory
sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv31846/src/test/BugTracker/Tests
Modified Files:
crash_on_concurrent_use.SF-1411926.py
Log Message:
propagated changes of Monday Oct 22 2007 - Monday Oct 22 2007
from the SQL_2-20 branch to the development trunk
Index: crash_on_concurrent_use.SF-1411926.py
===================================================================
RCS file:
/cvsroot/monetdb/sql/src/test/BugTracker/Tests/crash_on_concurrent_use.SF-1411926.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- crash_on_concurrent_use.SF-1411926.py 1 Jul 2007 14:34:37 -0000
1.3
+++ crash_on_concurrent_use.SF-1411926.py 22 Oct 2007 12:25:05 -0000
1.4
@@ -14,36 +14,36 @@
srv.close()
def clients(client, runs, clmd):
- for i in range(runs):
- sys.stdout.write('#start client %d run %d %d \t' % (client, i,
time.time()))
- sys.stdout.flush()
- sys.stderr.flush()
- clt = os.popen(clcmd, 'w')
- clt.close()
- sys.stdout.write('#close client %d run %d %d \n' % (client, i,
time.time()))
+ for i in range(runs):
+ sys.stdout.write('#start client %d run %d %d \t' % (client, i,
time.time()))
+ sys.stdout.flush()
+ sys.stderr.flush()
+ clt = os.popen(clcmd, 'w')
+ clt.close()
+ sys.stdout.write('#close client %d run %d %d \n' % (client, i,
time.time()))
class Client(threading.Thread):
- def __init__(self, client):
- threading.Thread.__init__ (self)
- self.client= client
+ def __init__(self, client):
+ threading.Thread.__init__ (self)
+ self.client= client
- def run(self):
- global clcmd
- clcmd = str(os.getenv('SQL_CLIENT')) + "< %s" %
('%s/crash_on_concurrent_use.SF-1411926.sql' % os.getenv('RELSRCDIR'))
- sys.stderr.write('#client%d: "%s"\n' % (self.client, clcmd))
- clients(self.client, 20, clcmd)
+ def run(self):
+ global clcmd
+ clcmd = str(os.getenv('SQL_CLIENT')) + "< %s" %
('%s/crash_on_concurrent_use.SF-1411926.sql' % os.getenv('RELSRCDIR'))
+ sys.stderr.write('#client%d: "%s"\n' % (self.client, clcmd))
+ clients(self.client, 20, clcmd)
def main():
- check_version = os.system('%s --version' % os.getenv('MSERVER'))
- if check_version == 0:
- srv = server_start('include sql;')
- else:
- srv = server_start('module(sql_server);')
- client_0 = Client(0)
- client_1 = Client(1)
- client_0.start()
- client_1.start()
- server_stop(srv)
+ check_version = os.system('%s --version' % os.getenv('MSERVER'))
+ if check_version == 0:
+ srv = server_start('include sql;')
+ else:
+ srv = server_start('module(sql_server);')
+ client_0 = Client(0)
+ client_1 = Client(1)
+ client_0.start()
+ client_1.start()
+ server_stop(srv)
main()
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins