Changeset: 3c26cd1b8bd7 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=3c26cd1b8bd7
Modified Files:
testing/src/process.py
Branch: Jun2010
Log Message:
set default bufsize system dependent; Windows: -1, other: 0
This is mainly to let nightly testing check, whether setting the
bufsize on Windows to -1 (i.e., "use the system default, which
usually means fully buffered") instead of 0 (unbuffered)
helps to fix bug 2621.
I will consider reverting this if it does not help.
diffs (26 lines):
diff -r b0ec6180ed3d -r 3c26cd1b8bd7 testing/src/process.py
--- a/testing/src/process.py Mon Aug 16 23:38:37 2010 +0200
+++ b/testing/src/process.py Mon Aug 16 23:59:33 2010 +0200
@@ -10,6 +10,13 @@
verbose = False
+if os.name == 'nt':
+ # Windows: default is (fully) buffered
+ default_bufsize = -1
+else:
+ # other: default is unbuffered
+ default_bufsize = 0
+
def splitcommand(cmd):
'''Like string.split, except take quotes into account.'''
q = None
@@ -123,7 +130,7 @@
def server(lang, args = [], stdin = None, stdout = None, stderr = None,
mapiport = None, xrpcport = None, dbname = os.getenv('TSTDB'),
- dbfarm = None, dbinit = None, bufsize = 0):
+ dbfarm = None, dbinit = None, bufsize = default_bufsize):
'''Start a server process.'''
cmd = _server[:]
if not cmd:
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list