mirror of
https://github.com/sqlite/sqlite.git
synced 2026-01-06 08:01:16 +03:00
Add the catchcmd_collapse_space command and use it to help make shell testing
more robust against TCL space escapes. FossilOrigin-Name: 93caabb66082f76ef161a51ac822b919517a7171
This commit is contained in:
@@ -275,13 +275,11 @@ do_test shell1-3.2.4 {
|
||||
|
||||
# .databases List names and files of attached databases
|
||||
do_test shell1-3.3.1 {
|
||||
set x [catchcmd "-csv test.db" ".databases"]
|
||||
set x [subst -nocommands -novariables $x]
|
||||
catchcmd_collapse_space "-csv test.db" ".databases"
|
||||
} "/0.+main.+[string map {/ .} [string range [get_pwd] 0 10]].*/"
|
||||
do_test shell1-3.3.2 {
|
||||
# extra arguments ignored
|
||||
set x [catchcmd "test.db" ".databases BAD"]
|
||||
set x [subst -nocommands -novariables $x]
|
||||
catchcmd_collapse_space "test.db" ".databases BAD"
|
||||
} "/0.+main.+[string map {/ .} [string range [get_pwd] 0 10]].*/"
|
||||
|
||||
# .dump ?TABLE? ... Dump the database in an SQL text format
|
||||
|
||||
Reference in New Issue
Block a user