1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-27 20:41:58 +03:00

Use the regexp result option for a test case in shell1.test.

FossilOrigin-Name: 93061c6e063fddfa6b5d21064a36b58cc97599f1
This commit is contained in:
drh
2012-05-12 01:14:27 +00:00
parent 0971140bec
commit e4d3195734
3 changed files with 9 additions and 10 deletions

View File

@ -283,9 +283,8 @@ do_test shell1-3.2.4 {
# .databases List names and files of attached databases
do_test shell1-3.3.1 {
set res [catchcmd "test.db" ".databases"]
regexp {0.*main.*test\.db} $res
} {1}
catchcmd "-csv test.db" ".databases"
} {/0 +.*main +.*test.db.*/}
do_test shell1-3.3.2 {
# too many arguments
catchcmd "test.db" ".databases BAD"