Fix the shell1.test test so to align with the new behavior imposed by

[bce807cd48763273] - that backslash escapes only work without quoted arguments
in dot-commands of the CLI.

FossilOrigin-Name: 0db82b4281a0e0d5e365553df11e0347f60c00c861c0fb96227059edff3a0ef6
This commit is contained in:
drh 2023-10-23 02:01:14 +00:00
parent 5e6dde3b35
commit aa040d891f
3 changed files with 12 additions and 12 deletions

View File

@ -1,5 +1,5 @@
C Fix\s[f5c01676fd281e93]\sso\sthat\sit\salways\spreserves\s8-byte\salignment\sfor\sExpr\nobjects.\s\sAdd\snew\sassert()\sstatement\sto\sverify\sthis. C Fix\sthe\sshell1.test\stest\sso\sto\salign\swith\sthe\snew\sbehavior\simposed\sby\n[bce807cd48763273]\s-\sthat\sbackslash\sescapes\sonly\swork\swithout\squoted\sarguments\nin\sdot-commands\sof\sthe\sCLI.
D 2023-10-22T23:44:32.467 D 2023-10-23T02:01:14.037
F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1 F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1
F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea
F LICENSE.md df5091916dbb40e6e9686186587125e1b2ff51f022cc334e886c19a0e9982724 F LICENSE.md df5091916dbb40e6e9686186587125e1b2ff51f022cc334e886c19a0e9982724
@ -1558,7 +1558,7 @@ F test/sharedA.test 64bdd21216dda2c6a3bd3475348ccdc108160f34682c97f2f51c19fc0e21
F test/sharedB.test 1a84863d7a2204e0d42f2e1606577c5e92e4473fa37ea0f5bdf829e4bf8ee707 F test/sharedB.test 1a84863d7a2204e0d42f2e1606577c5e92e4473fa37ea0f5bdf829e4bf8ee707
F test/shared_err.test 32634e404a3317eeb94abc7a099c556a346fdb8fb3858dbe222a4cbb8926a939 F test/shared_err.test 32634e404a3317eeb94abc7a099c556a346fdb8fb3858dbe222a4cbb8926a939
F test/sharedlock.test 5ede3c37439067c43b0198f580fd374ebf15d304 F test/sharedlock.test 5ede3c37439067c43b0198f580fd374ebf15d304
F test/shell1.test 300b77328aaafb9f3e7a53a26e4162fbf92181d92251d259ff105a2275ff998d F test/shell1.test 2191c892d8256b1b6cccb4fca894cfc2e748450cf422e6ec80a320a0d538b6df
F test/shell2.test 35226c070a8c7f64fd016dfac2a0db2a40f709b3131f61daacd9dad61536c9cb F test/shell2.test 35226c070a8c7f64fd016dfac2a0db2a40f709b3131f61daacd9dad61536c9cb
F test/shell3.test 91febeac0412812bf6370abb8ed72700e32bf8f9878849414518f662dfd55e8a F test/shell3.test 91febeac0412812bf6370abb8ed72700e32bf8f9878849414518f662dfd55e8a
F test/shell4.test 9abd0c12a7e20a4c49e84d5be208d2124fa6c09e728f56f1f4bee0f02853935f F test/shell4.test 9abd0c12a7e20a4c49e84d5be208d2124fa6c09e728f56f1f4bee0f02853935f
@ -2136,8 +2136,8 @@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a91a7acc6293828957a386a8a93
F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc
F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e
F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0 F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0
P bce807cd4876327396b4ffcdf77f6931dd3bbd3314336eedf38bcf01d17af32c P 678a9728dc6b88d8ef924c86603056df18204bc9a9c4776b9baffd7c5b10c5f2
R 902811deded0933db7129771b3f80f6f R 7cea9307a508c1bb73575e5aab23cb6f
U drh U drh
Z d392e05c74441a6c706773fdffb67deb Z f84a1fffe1798f9d2981149753edf239
# Remove this line to create a well-formed Fossil manifest. # Remove this line to create a well-formed Fossil manifest.

View File

@ -1 +1 @@
678a9728dc6b88d8ef924c86603056df18204bc9a9c4776b9baffd7c5b10c5f2 0db82b4281a0e0d5e365553df11e0347f60c00c861c0fb96227059edff3a0ef6

View File

@ -1081,10 +1081,10 @@ do_test shell1-5.0 {
# #
set escapes [list \ set escapes [list \
\t \\t \n \\n \v \\v \f \\f \ \t \\t \n \\n \v \\v \f \\f \
" " "\" \"" \" \\\" ' \"'\" \\ \\\\] " " "\" \"" \" \\\" \\ \\\\]
} }
set char [string map $escapes $char] set char [string map $escapes $char]
set x [catchcmdex test.db ".print $char\n"] set x [catchcmdex test.db ".print \"$char\"\n"]
set code [lindex $x 0] set code [lindex $x 0]
set res [lindex $x 1] set res [lindex $x 1]
if {$code ne "0"} { if {$code ne "0"} {
@ -1165,21 +1165,21 @@ do_test shell1-7.1.2 {
} {0 {CREATE TABLE Z (x TEXT PRIMARY KEY); } {0 {CREATE TABLE Z (x TEXT PRIMARY KEY);
CREATE TABLE _ (x TEXT PRIMARY KEY);}} CREATE TABLE _ (x TEXT PRIMARY KEY);}}
do_test shell1-7.1.3 { do_test shell1-7.1.3 {
catchcmd "test.db" ".schema \\\\_" catchcmd "test.db" ".schema \"\\\\_\""
} {0 {CREATE TABLE _ (x TEXT PRIMARY KEY);}} } {0 {CREATE TABLE _ (x TEXT PRIMARY KEY);}}
do_test shell1-7.1.4 { do_test shell1-7.1.4 {
catchcmd "test.db" ".schema __" catchcmd "test.db" ".schema __"
} {0 {CREATE TABLE YY (x TEXT PRIMARY KEY); } {0 {CREATE TABLE YY (x TEXT PRIMARY KEY);
CREATE TABLE __ (x TEXT PRIMARY KEY);}} CREATE TABLE __ (x TEXT PRIMARY KEY);}}
do_test shell1-7.1.5 { do_test shell1-7.1.5 {
catchcmd "test.db" ".schema \\\\_\\\\_" catchcmd "test.db" ".schema \"\\\\_\\\\_\""
} {0 {CREATE TABLE __ (x TEXT PRIMARY KEY);}} } {0 {CREATE TABLE __ (x TEXT PRIMARY KEY);}}
do_test shell1-7.1.6 { do_test shell1-7.1.6 {
catchcmd "test.db" ".schema ___" catchcmd "test.db" ".schema ___"
} {0 {CREATE TABLE WWW (x TEXT PRIMARY KEY); } {0 {CREATE TABLE WWW (x TEXT PRIMARY KEY);
CREATE TABLE ___ (x TEXT PRIMARY KEY);}} CREATE TABLE ___ (x TEXT PRIMARY KEY);}}
do_test shell1-7.1.7 { do_test shell1-7.1.7 {
catchcmd "test.db" ".schema \\\\_\\\\_\\\\_" catchcmd "test.db" ".schema \"\\\\_\\\\_\\\\_\""
} {0 {CREATE TABLE ___ (x TEXT PRIMARY KEY);}} } {0 {CREATE TABLE ___ (x TEXT PRIMARY KEY);}}
} }