Changeset: 7ba737e4c093 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=7ba737e4c093
Added Files:
        sql/test/BugTracker-2015/Tests/local-remotetable-crash.Bug-3754.SQL.py
Removed Files:
        sql/test/BugTracker-2015/Tests/local-remotetable-crash.Bug-3754.sql
Modified Files:
        
sql/test/BugTracker-2015/Tests/local-remotetable-crash.Bug-3754.stable.err
Branch: Jul2015
Log Message:

Fix test so that it does what it was intended to do.
Namely creating a remote table on the server itself.


diffs (51 lines):

diff --git 
a/sql/test/BugTracker-2015/Tests/local-remotetable-crash.Bug-3754.SQL.py 
b/sql/test/BugTracker-2015/Tests/local-remotetable-crash.Bug-3754.SQL.py
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2015/Tests/local-remotetable-crash.Bug-3754.SQL.py
@@ -0,0 +1,23 @@
+import os, sys, re
+try:
+    from MonetDBtesting import process
+except ImportError:
+    import process
+
+c = process.client('sql', stdin = process.PIPE, stdout = process.PIPE, stderr 
= process.PIPE)
+c.stdin.write('''\
+CREATE TABLE t1 (i int);
+CREATE REMOTE TABLE rt (LIKE t1) ON 'mapi:monetdb://localhost:%d/%s';
+SELECT * FROM rt;
+''' % (int(os.environ['MAPIPORT']), os.environ['TSTDB']))
+out, err = c.communicate()
+sys.stdout.write(out)
+sys.stderr.write(err)
+c = process.client('sql', stdin = process.PIPE, stdout = process.PIPE, stderr 
= process.PIPE)
+c.stdin.write('''\
+DROP TABLE rt;
+DROP TABLE t1;
+''')
+out, err = c.communicate()
+sys.stdout.write(out)
+sys.stderr.write(err)
diff --git 
a/sql/test/BugTracker-2015/Tests/local-remotetable-crash.Bug-3754.sql 
b/sql/test/BugTracker-2015/Tests/local-remotetable-crash.Bug-3754.sql
deleted file mode 100644
--- a/sql/test/BugTracker-2015/Tests/local-remotetable-crash.Bug-3754.sql
+++ /dev/null
@@ -1,3 +0,0 @@
-CREATE TABLE t1 (i int);
-CREATE REMOTE TABLE rt (LIKE t1) ON 'mapi:monetdb://localhost:50000/test';
-SELECT * FROM rt;
diff --git 
a/sql/test/BugTracker-2015/Tests/local-remotetable-crash.Bug-3754.stable.err 
b/sql/test/BugTracker-2015/Tests/local-remotetable-crash.Bug-3754.stable.err
--- a/sql/test/BugTracker-2015/Tests/local-remotetable-crash.Bug-3754.stable.err
+++ b/sql/test/BugTracker-2015/Tests/local-remotetable-crash.Bug-3754.stable.err
@@ -30,9 +30,9 @@ stderr of test 'local-remotetable-crash.
 # 18:16:20 >  "mclient" "-lsql" "-ftest" "-Eutf-8" "-i" "-e" 
"--host=/var/tmp/mtest-19202" "--port=37515"
 # 18:16:20 >  
 
-MAPI  = (monetdb) /var/tmp/mtest-5390/.s.monetdb.38366
+MAPI  = (monetdb) /var/tmp/mtest-5803/.s.monetdb.31110
 QUERY = SELECT * FROM rt;
-ERROR = !unable to connect to 'mapi:monetdb://localhost:50000/test': could not 
connect to localhost:50000: Connection refused
+ERROR = !(mapi:monetdb://monetdb@localhost/mTests_sql_test_BugTracker-2015) 
unable to find sys.rt(i)
 
 
 # 18:16:20 >  
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to