Changeset: 7a5d896c4c2a for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=7a5d896c4c2a
Modified Files:
        monetdb5/tests/BugTracker/Tests/All
        monetdb5/tests/BugTracker/Tests/joinpath-loop.Bug-2965.mal
        monetdb5/tests/BugTracker/Tests/joinpath-loop.Bug-2965.stable.err
        monetdb5/tests/BugTracker/Tests/joinpath-loop.Bug-2965.stable.out
Branch: Dec2011
Log Message:

Added test for bug 2965.


diffs (106 lines):

diff --git a/monetdb5/tests/BugTracker/Tests/All 
b/monetdb5/tests/BugTracker/Tests/All
--- a/monetdb5/tests/BugTracker/Tests/All
+++ b/monetdb5/tests/BugTracker/Tests/All
@@ -8,3 +8,4 @@ empty_line_crash.SF-1806638
 parser.SF-2051309
 mal_var_persistent_over_sessions.SF-2581675
 merge-join_properties.SF-2952191
+joinpath-loop.Bug-2965
diff --git a/monetdb5/tests/BugTracker/Tests/joinpath-loop.Bug-2965.mal 
b/monetdb5/tests/BugTracker/Tests/joinpath-loop.Bug-2965.mal
new file mode 100644
--- /dev/null
+++ b/monetdb5/tests/BugTracker/Tests/joinpath-loop.Bug-2965.mal
@@ -0,0 +1,13 @@
+a:bat[:oid, :int] := bat.new(:oid, :int);
+b:bat[:oid, :int] := bat.new(:oid, :int);
+c:bat[:oid, :int] := bat.new(:oid, :int);
+bat.append(a, 1);
+bat.append(a, 2);
+bat.append(a, 3);
+bat.append(b, 1);
+bat.append(b, 2);
+bat.append(b, 0);
+bat.append(c, 0);
+bat.append(c, 3);
+bat.append(c, 1);
+algebra.joinPath(a, b, c);
diff --git a/monetdb5/tests/BugTracker/Tests/joinpath-loop.Bug-2965.stable.err 
b/monetdb5/tests/BugTracker/Tests/joinpath-loop.Bug-2965.stable.err
new file mode 100644
--- /dev/null
+++ b/monetdb5/tests/BugTracker/Tests/joinpath-loop.Bug-2965.stable.err
@@ -0,0 +1,31 @@
+stderr of test 'joinpath-loop.Bug-2965` in directory 'tests/BugTracker` itself:
+
+
+# 16:23:27 >  
+# 16:23:27 >  "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" 
"gdk_dbfarm=/ufs/sjoerd/Monet-candidate/var/MonetDB" "--set" "mapi_open=true" 
"--set" "mapi_port=39263" "--set" "monet_prompt=" "--trace" "--forcemito" 
"--set" "mal_listing=2" "--dbname=mTests_tests_BugTracker" 
"joinpath-loop.Bug-2965.mal"
+# 16:23:27 >  
+
+# builtin opt  gdk_dbname = demo
+# builtin opt  gdk_dbfarm = /ufs/sjoerd/Monet-candidate/var/monetdb5/dbfarm
+# builtin opt  gdk_debug = 0
+# builtin opt  gdk_alloc_map = no
+# builtin opt  gdk_vmtrim = yes
+# builtin opt  monet_prompt = >
+# builtin opt  monet_daemon = no
+# builtin opt  mapi_port = 50000
+# builtin opt  mapi_open = false
+# builtin opt  mapi_autosense = false
+# builtin opt  sql_optimizer = default_pipe
+# builtin opt  sql_debug = 0
+# cmdline opt  gdk_nr_threads = 0
+# cmdline opt  gdk_dbfarm = /ufs/sjoerd/Monet-candidate/var/MonetDB
+# cmdline opt  mapi_open = true
+# cmdline opt  mapi_port = 39263
+# cmdline opt  monet_prompt = 
+# cmdline opt  mal_listing = 2
+# cmdline opt  gdk_dbname = mTests_tests_BugTracker
+
+# 16:23:27 >  
+# 16:23:27 >  "Done."
+# 16:23:27 >  
+
diff --git a/monetdb5/tests/BugTracker/Tests/joinpath-loop.Bug-2965.stable.out 
b/monetdb5/tests/BugTracker/Tests/joinpath-loop.Bug-2965.stable.out
new file mode 100644
--- /dev/null
+++ b/monetdb5/tests/BugTracker/Tests/joinpath-loop.Bug-2965.stable.out
@@ -0,0 +1,39 @@
+stdout of test 'joinpath-loop.Bug-2965` in directory 'tests/BugTracker` itself:
+
+
+# 16:23:27 >  
+# 16:23:27 >  "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" 
"gdk_dbfarm=/ufs/sjoerd/Monet-candidate/var/MonetDB" "--set" "mapi_open=true" 
"--set" "mapi_port=39263" "--set" "monet_prompt=" "--trace" "--forcemito" 
"--set" "mal_listing=2" "--dbname=mTests_tests_BugTracker" 
"joinpath-loop.Bug-2965.mal"
+# 16:23:27 >  
+
+# MonetDB 5 server v11.7.0
+# This is an unreleased version
+# Serving database 'mTests_tests_BugTracker', using 8 threads
+# Compiled for x86_64-unknown-linux-gnu/64bit with 64bit OIDs dynamically 
linked
+# Found 15.662 GiB available main-memory.
+# Copyright (c) 1993-July 2008 CWI.
+# Copyright (c) August 2008-2011 MonetDB B.V., all rights reserved
+# Visit http://www.monetdb.org/ for further information
+# Listening for connection requests on mapi:monetdb://madrid.ins.cwi.nl:39263/
+# MonetDB/GIS module loaded
+# MonetDB/SQL module loaded
+function user.main():void;
+    a:bat[:oid,:int]  := bat.new(:oid,:int);
+    b:bat[:oid,:int]  := bat.new(:oid,:int);
+    c:bat[:oid,:int]  := bat.new(:oid,:int);
+    bat.append(a,1);
+    bat.append(a,2);
+    bat.append(a,3);
+    bat.append(b,1);
+    bat.append(b,2);
+    bat.append(b,0);
+    bat.append(c,0);
+    bat.append(c,3);
+    bat.append(c,1);
+    algebra.joinPath(a,b,c);
+end main;
+!MALException:algebra.joinPath:Type mismatch
+
+# 16:23:27 >  
+# 16:23:27 >  "Done."
+# 16:23:27 >  
+
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to