Update of /cvsroot/monetdb/pathfinder/tests/BugTracker/Tests
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv17258

Modified Files:
      Tag: May2009
        All 
Added Files:
      Tag: May2009
        port_busy.SF-1809586.py port_busy.SF-1809586.stable.err 
        port_busy.SF-1809586.stable.out 
Log Message:
Added test, but no correct stable output yet.

--- NEW FILE: port_busy.SF-1809586.stable.out ---
Correct output to be provided.

U All
Index: All
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/tests/BugTracker/Tests/All,v
retrieving revision 1.136.4.12
retrieving revision 1.136.4.13
diff -u -d -r1.136.4.12 -r1.136.4.13
--- All 31 Jul 2009 08:01:53 -0000      1.136.4.12
+++ All 31 Jul 2009 08:44:45 -0000      1.136.4.13
@@ -141,6 +141,7 @@
 NOT_ALGEBRA?pf-O0_produces_wrong_MIL.SF-1771532
 insert_attribute_gives_ERROR_in_merged_union.SF-1763575
 immune_for_updates.SF-1766259
+port_busy.SF-1809586
 repeated-insert.SF-1814911
 fn_normalize-space.SF-1828362
 # recursive function

--- NEW FILE: port_busy.SF-1809586.py ---
import os, sys, socket
try:
    import subprocess
except ImportError:
    # user private copy for old Python versions
    import MonetDBtesting.subprocess26 as subprocess

def prog(cmd, input = None):
    clt = subprocess.Popen(cmd,
                           stdin = subprocess.PIPE,
                           stdout = subprocess.PIPE,
                           stderr = subprocess.PIPE,
                           universal_newlines = True,
                           shell = type(cmd) == type(''))
    out, err = clt.communicate(input)
    sys.stdout.write(out)
    sys.stderr.write(err)

def main():
    mserver = os.getenv('MSERVER')

    # test mapi and pathfinder modules with MAPIPORT busy
    port = os.getenv('MAPIPORT')
    if port:
        port = int(port)
    else:
        port = 50001
    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    s.bind(('', port))
    prog(mserver + ' "--dbinit=module(mapi);"', 'print(1);\n')
    prog(mserver + ' "--dbinit=module(pathfinder);"', 'print(1);\n')
    s.close()

    # test mapi and pathfinder modules with XRPCPORT busy
    port = os.getenv('XRPCPORT')
    if port:
        port = int(port)
    else:
        port = 50001
    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    s.bind(('', port))
    prog(mserver + ' "--dbinit=module(mapi);"', 'print(1);\n')
    prog(mserver + ' "--dbinit=module(pathfinder);"', 'print(1);\n')
    s.close()

main()

--- NEW FILE: port_busy.SF-1809586.stable.err ---
Correct output to be provided.


------------------------------------------------------------------------------
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

Reply via email to