[Dbconfig-common-changes] [dbconfig-common] r456 - trunk/test
Sean Finney
seanius at alioth.debian.org
Fri Jul 4 22:55:00 UTC 2008
Author: seanius
Date: 2008-07-04 22:55:00 +0000 (Fri, 04 Jul 2008)
New Revision: 456
Modified:
trunk/test/mockdb.sh
Log:
add some more log messages in test cases
Modified: trunk/test/mockdb.sh
===================================================================
--- trunk/test/mockdb.sh 2008-07-04 22:54:47 UTC (rev 455)
+++ trunk/test/mockdb.sh 2008-07-04 22:55:00 UTC (rev 456)
@@ -127,7 +127,7 @@
log_tc "checkconnect fails"
mockup -r 1 _dbc_mysql_check_connect
- dbc_mysql_createdb >/dev/null 2>&1
+ dbc_mysql_createdb >/dev/null
assertFalse "dbc_mysql_createdb (checkconnect) should have failed" $?
log_tc "database already exists"
@@ -456,12 +456,15 @@
t=`mktemp`
# normal string
+ log_tc "escaping normal string"
str=`dbc_mysql_escape_str "this is a normal string"`
assertTrue "error escaping string" "[ '$str' = 'this is a normal string' ]"
# string with \
+ log_tc "escaping string w/backslash"
dbc_mysql_escape_str 'should have 1 backslash (\) but escape to 2' > $t
assertFilesEqual ./data/mysql_escape_str.backslash.txt "$t"
# string with '
+ log_tc "escaping string w/single quote"
dbc_mysql_escape_str "it isn't unusual to find quotes" > "$t"
assertFilesEqual ./data/mysql_escape_str.quote.txt "$t"
More information about the Dbconfig-common-changes
mailing list