[Commits] Rev 2938: Fix test failure when using OpenSSL due to different error message from YaSSL. in file:///home/knielsen/devel/maria/my/tmp/

knielsen at knielsen-hq.org knielsen at knielsen-hq.org
Mon Nov 22 23:02:07 EET 2010


At file:///home/knielsen/devel/maria/my/tmp/

------------------------------------------------------------
revno: 2938
revision-id: knielsen at knielsen-hq.org-20101122210207-7x2l23x7frvem3b9
parent: knielsen at knielsen-hq.org-20101116105703-nc2tvgon5hvpaq29
committer: knielsen at knielsen-hq.org
branch nick: tmp
timestamp: Mon 2010-11-22 22:02:07 +0100
message:
  Fix test failure when using OpenSSL due to different error message from YaSSL.
=== modified file 'mysql-test/t/openssl_1.test'
--- a/mysql-test/t/openssl_1.test	2010-03-04 08:03:07 +0000
+++ b/mysql-test/t/openssl_1.test	2010-11-22 21:02:07 +0000
@@ -73,6 +73,8 @@ drop table t1;
 # a different cacert
 #
 --exec echo "this query should not execute;" > $MYSQLTEST_VARDIR/tmp/test.sql
+# Handle that openssl gives different error messages from YaSSL.
+--replace_regex /error:00000005:lib\(0\):func\(0\):DH lib/ASN: bad other signature confirmation/
 --error 1
 --exec $MYSQL_TEST --ssl-ca=$MYSQL_TEST_DIR/std_data/untrusted-cacert.pem --max-connect-retries=1 < $MYSQLTEST_VARDIR/tmp/test.sql 2>&1
 
@@ -80,6 +82,7 @@ drop table t1;
 # Test that we can't open connection to server if we are using
 # a blank ca
 #
+--replace_regex /error:00000005:lib\(0\):func\(0\):DH lib/ASN: bad other signature confirmation/
 --error 1
 --exec $MYSQL_TEST --ssl-ca= --max-connect-retries=1 < $MYSQLTEST_VARDIR/tmp/test.sql 2>&1
 
@@ -87,6 +90,7 @@ drop table t1;
 # Test that we can't open connection to server if we are using
 # a nonexistent ca file
 #
+--replace_regex /error:00000005:lib\(0\):func\(0\):DH lib/ASN: bad other signature confirmation/
 --error 1
 --exec $MYSQL_TEST --ssl-ca=nonexisting_file.pem --max-connect-retries=1 < $MYSQLTEST_VARDIR/tmp/test.sql 2>&1
 



More information about the commits mailing list