Date: Friday, May 4, 2007 @ 12:13:16
Author: marc
Path: /cvsroot/carob/libmysequoia/test
Modified: TestMySQLAPI.cpp (1.48 -> 1.49)
Make BAD_DB test itself fail instead of succeeding and making all
tests fail during the following 5 seconds. See CAROB-134.
------------------+
TestMySQLAPI.cpp | 5 +++++
1 files changed, 5 insertions(+)
Index: libmysequoia/test/TestMySQLAPI.cpp
diff -u libmysequoia/test/TestMySQLAPI.cpp:1.48
libmysequoia/test/TestMySQLAPI.cpp:1.49
--- libmysequoia/test/TestMySQLAPI.cpp:1.48 Fri May 4 11:32:18 2007
+++ libmysequoia/test/TestMySQLAPI.cpp Fri May 4 12:13:16 2007
@@ -128,10 +128,15 @@
CPPUNIT_ASSERT(mysql->port != 0);
// select a nonexistent DB
+ CPPUNIT_ASSERT(!"BAD_DB test is disabled because of CAROB-134");
CPPUNIT_ASSERT(mysql_select_db(mysql, BAD_DB) != 0);
CPPUNIT_ASSERT(mysql_errno(mysql) != 0);
CPPUNIT_ASSERT(mysql_error(mysql) != 0);
CPPUNIT_ASSERT(mysql_sqlstate(mysql) != 0);
+
+ // alternatively, can sleep as a workaround to CAROB-134
+ sleep(6);
+
}
void TestMySQLAPI::mysql_change_user_test(void)
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits