From b44d124700868695f0ab757b3b738e08c14e2a01 Mon Sep 17 00:00:00 2001 From: Roger Pack Date: Tue, 21 Apr 2009 15:08:40 +0000 Subject: [PATCH] add some notes to the tests --- test/{test_all.rb => RUN_ALL_TESTS.RB} | 0 test/connect_failure2_test.rb | 7 ++++++- 2 files changed, 6 insertions(+), 1 deletion(-) rename test/{test_all.rb => RUN_ALL_TESTS.RB} (100%) diff --git a/test/test_all.rb b/test/RUN_ALL_TESTS.RB similarity index 100% rename from test/test_all.rb rename to test/RUN_ALL_TESTS.RB diff --git a/test/connect_failure2_test.rb b/test/connect_failure2_test.rb index 98fd476..e957f60 100644 --- a/test/connect_failure2_test.rb +++ b/test/connect_failure2_test.rb @@ -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" require 'mysqlplus' require 'socket' - TCPServer.new '0.0.0.0', 8002 require 'timeout' + TCPServer.new '0.0.0.0', 8002 Thread.new { sleep 2 print "pass" @@ -13,5 +17,6 @@ if RUBY_VERSION >= "1.9.1" # which hangs otherwise (blows up if code is bad, otherwise hangs) Mysql.real_connect '127.0.0.1', 'root', 'pass', 'db', 8002 } + raise 'should never get here' end