/ Check-in [219a251e]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Update shell1.test tests to deal with backslash escaping in TCL on Windows-style pathnames.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:219a251e182bf43376fbc8ae1ce6f77f18a1b092
User & Date: drh 2016-03-26 13:26:35
Context
2016-03-26
14:41
Remove the catchcmd_collapse_space procedure in tester.tcl - no longer needed. check-in: 3bd499d3 user: drh tags: trunk
13:26
Update shell1.test tests to deal with backslash escaping in TCL on Windows-style pathnames. check-in: 219a251e user: drh tags: trunk
2016-03-25
20:10
Do not run the shell3.test module under mingw because of mingw's dodgy command-line parsing. check-in: a7c080a9 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/shell1.test.

   272    272     # too many arguments
   273    273     catchcmd "test.db" ".bail OFF BAD"
   274    274   } {1 {Usage: .bail on|off}}
   275    275   
   276    276   # .databases             List names and files of attached databases
   277    277   do_test shell1-3.3.1 {
   278    278     catchcmd_collapse_space "-csv test.db" ".databases"
   279         -} "/0.+main.+[string map {/ .} [string range [get_pwd] 0 10]].*/"
          279  +} "/0.+main.+[string map {/ ".{1,2}"} [string range [get_pwd] 0 10]].*/"
   280    280   do_test shell1-3.3.2 {
   281    281     # extra arguments ignored
   282    282     catchcmd_collapse_space "test.db" ".databases BAD"
   283         -} "/0.+main.+[string map {/ .} [string range [get_pwd] 0 10]].*/"
          283  +} "/0.+main.+[string map {/ ".{1,2}"} [string range [get_pwd] 0 10]].*/"
   284    284   
   285    285   # .dump ?TABLE? ...      Dump the database in an SQL text format
   286    286   #                          If TABLE specified, only dump tables matching
   287    287   #                          LIKE pattern TABLE.
   288    288   do_test shell1-3.4.1 {
   289    289     set res [catchcmd "test.db" ".dump"]
   290    290     list [regexp {BEGIN TRANSACTION;} $res] \