Update of /cvsroot/monetdb/pathfinder/tests/BugTracker/Tests
In directory 
sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv22449/pathfinder/tests/BugTracker/Tests

Modified Files:
      Tag: Nov2009
        port_busy.SF-1809586.py port_busy.SF-1809586.stable.err 
        port_busy.SF-1809586.stable.out 
Log Message:

slightly extended test and approved stable output for
ID: 1809586 "PF: busy port crashes Mserver"
https://sourceforge.net/tracker/?func=detail&aid=1809586&group_id=56967&atid=482468
and added extra Mfilter rule to cope with variable output
due to changing port numbers.

We accept the fact that starting a MonetDB/XQury server (`Mserver 
--dbinit="module(pathfinder);"`)
quits instantly (with a proper error message)
in case either the MAPIPORT or the XQUERYPORT are not available
(the server does not make much sense without access to these ports).
The default ports can easily be overwritten on the server commandline:
--set mapi_port=<portno> --set xrpc_port=<portno>


Index: port_busy.SF-1809586.stable.out
===================================================================
RCS file: 
/cvsroot/monetdb/pathfinder/tests/BugTracker/Tests/port_busy.SF-1809586.stable.out,v
retrieving revision 1.2
retrieving revision 1.2.6.1
diff -u -d -r1.2 -r1.2.6.1
--- port_busy.SF-1809586.stable.out     31 Jul 2009 09:35:06 -0000      1.2
+++ port_busy.SF-1809586.stable.out     25 Nov 2009 14:27:29 -0000      1.2.6.1
@@ -1 +1,60 @@
-Correct output to be provided.
+stdout of test 'port_busy.SF-1809586` in directory 'tests/BugTracker` itself:
+
+
+# 10:46:36 >  
+# 10:46:36 >  /usr/bin/python port_busy.SF-1809586.py port_busy.SF-1809586 
+# 10:46:36 >  
+
+MAPIPORT
+module(mapi);
+# MonetDB Server v4.34.0
+# based on GDK   v1.34.0
+# Copyright (c) 1993-July 2008, CWI. All rights reserved.
+# Copyright (c) August 2008-2009, MonetDB B.V.. All rights reserved.
+# Compiled for x86_64-unknown-linux-gnu/64bit with 64bit OIDs; dynamically 
linked.
+# Detected 7.753 GiB (8324386816 bytes) main-memory.
+# Visit http://monetdb.cwi.nl/ for further information.
+!ERROR: MAPIlisten:binding to stream socket (32202) failed
+!OS: Address already in use
+print(1);
+[ 1 ]
+quit();
+module(pathfinder);
+# MonetDB Server v4.34.0
+# based on GDK   v1.34.0
+# Copyright (c) 1993-July 2008, CWI. All rights reserved.
+# Copyright (c) August 2008-2009, MonetDB B.V.. All rights reserved.
+# Compiled for x86_64-unknown-linux-gnu/64bit with 64bit OIDs; dynamically 
linked.
+# Detected 7.753 GiB (8324386816 bytes) main-memory.
+# Visit http://monetdb.cwi.nl/ for further information.
+# PF/Tijah module v0.13.0 loaded. http://dbappl.cs.utwente.nl/pftijah
+!ERROR: MAPIlisten:binding to stream socket (32202) failed
+!OS: Address already in use
+XRPCPORT
+module(mapi);
+# MonetDB Server v4.34.0
+# based on GDK   v1.34.0
+# Copyright (c) 1993-July 2008, CWI. All rights reserved.
+# Copyright (c) August 2008-2009, MonetDB B.V.. All rights reserved.
+# Compiled for x86_64-unknown-linux-gnu/64bit with 64bit OIDs; dynamically 
linked.
+# Detected 7.753 GiB (8324386816 bytes) main-memory.
+# Visit http://monetdb.cwi.nl/ for further information.
+print(1);
+[ 1 ]
+quit();
+module(pathfinder);
+# MonetDB Server v4.34.0
+# based on GDK   v1.34.0
+# Copyright (c) 1993-July 2008, CWI. All rights reserved.
+# Copyright (c) August 2008-2009, MonetDB B.V.. All rights reserved.
+# Compiled for x86_64-unknown-linux-gnu/64bit with 64bit OIDs; dynamically 
linked.
+# Detected 7.753 GiB (8324386816 bytes) main-memory.
+# Visit http://monetdb.cwi.nl/ for further information.
+# PF/Tijah module v0.13.0 loaded. http://dbappl.cs.utwente.nl/pftijah
+# MonetDB/XQuery module v0.28.3 loaded (default back-end is 'algebra')
+# XRPC administrative console at http://127.0.0.1:43396/admin
+
+# 10:46:37 >  
+# 10:46:37 >  Done.
+# 10:46:37 >  
+

Index: port_busy.SF-1809586.py
===================================================================
RCS file: 
/cvsroot/monetdb/pathfinder/tests/BugTracker/Tests/port_busy.SF-1809586.py,v
retrieving revision 1.2.6.2
retrieving revision 1.2.6.3
diff -u -d -r1.2.6.2 -r1.2.6.3
--- port_busy.SF-1809586.py     15 Oct 2009 15:51:41 -0000      1.2.6.2
+++ port_busy.SF-1809586.py     25 Nov 2009 14:27:28 -0000      1.2.6.3
@@ -2,6 +2,8 @@
 from MonetDBtesting import process
 
 def prog(dbinit, input):
+    sys.stdout.write("%s\n" % dbinit)
+    sys.stderr.write("%s\n" % dbinit)
     srv = process.server('mil', dbinit = dbinit,
                         stdin = process.PIPE,
                         stdout = process.PIPE,
@@ -14,6 +16,8 @@
     mserver = os.getenv('MSERVER')
 
     # test mapi and pathfinder modules with MAPIPORT busy
+    sys.stdout.write("MAPIPORT\n")
+    sys.stderr.write("MAPIPORT\n")
     port = int(os.getenv('MAPIPORT', '50000'))
     s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
     s.bind(('', port))
@@ -22,6 +26,8 @@
     s.close()
 
     # test mapi and pathfinder modules with XRPCPORT busy
+    sys.stdout.write("XRPCPORT\n")
+    sys.stderr.write("XRPCPORT\n")
     port = int(os.getenv('XRPCPORT', '50001'))
     s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
     s.bind(('', port))

Index: port_busy.SF-1809586.stable.err
===================================================================
RCS file: 
/cvsroot/monetdb/pathfinder/tests/BugTracker/Tests/port_busy.SF-1809586.stable.err,v
retrieving revision 1.2
retrieving revision 1.2.6.1
diff -u -d -r1.2 -r1.2.6.1
--- port_busy.SF-1809586.stable.err     31 Jul 2009 09:35:02 -0000      1.2
+++ port_busy.SF-1809586.stable.err     25 Nov 2009 14:27:29 -0000      1.2.6.1
@@ -1 +1,19 @@
-Correct output to be provided.
+stderr of test 'port_busy.SF-1809586` in directory 'tests/BugTracker` itself:
+
+
+# 10:46:36 >  
+# 10:46:36 >  /usr/bin/python port_busy.SF-1809586.py port_busy.SF-1809586 
+# 10:46:36 >  
+
+MAPIPORT
+module(mapi);
+module(pathfinder);
+XRPCPORT
+module(mapi);
+module(pathfinder);
+01/Jan/1970 01:00:00 shttpd_open_port: bind(43396): Address already in use
+
+# 10:46:37 >  
+# 10:46:37 >  Done.
+# 10:46:37 >  
+


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