add some notes to the tests
This commit is contained in:
parent
c5042772b5
commit
b44d124700
@ -1,8 +1,12 @@
|
|||||||
|
# If this script returns without the word pass
|
||||||
|
# you may have compiled mysqlplus using ruby and
|
||||||
|
# run it using a different version of ruby
|
||||||
|
|
||||||
if RUBY_VERSION >= "1.9.1"
|
if RUBY_VERSION >= "1.9.1"
|
||||||
require 'mysqlplus'
|
require 'mysqlplus'
|
||||||
require 'socket'
|
require 'socket'
|
||||||
TCPServer.new '0.0.0.0', 8002
|
|
||||||
require 'timeout'
|
require 'timeout'
|
||||||
|
TCPServer.new '0.0.0.0', 8002
|
||||||
Thread.new {
|
Thread.new {
|
||||||
sleep 2
|
sleep 2
|
||||||
print "pass"
|
print "pass"
|
||||||
@ -13,5 +17,6 @@ if RUBY_VERSION >= "1.9.1"
|
|||||||
# which hangs otherwise (blows up if code is bad, otherwise hangs)
|
# which hangs otherwise (blows up if code is bad, otherwise hangs)
|
||||||
Mysql.real_connect '127.0.0.1', 'root', 'pass', 'db', 8002
|
Mysql.real_connect '127.0.0.1', 'root', 'pass', 'db', 8002
|
||||||
}
|
}
|
||||||
|
raise 'should never get here'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user