mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Fix the URI test script so that it works even if there is a subdirectory
named "test". FossilOrigin-Name: 2018d4e108872f2436df046636401b89cfde589d
This commit is contained in:
@ -46,7 +46,7 @@ foreach {tn uri file} {
|
||||
11 file file
|
||||
12 http:test.db http:test.db
|
||||
13 file:test.db%00extra test.db
|
||||
14 file:test%00.db%00extra test
|
||||
14 file:testdb%00.db%00extra testdb
|
||||
|
||||
15 test.db?mork=1#boris test.db?mork=1#boris
|
||||
16 file://localhostPWD/test.db%3Fhello test.db?hello
|
||||
@ -59,6 +59,7 @@ foreach {tn uri file} {
|
||||
set uri [string map [list PWD [pwd]] $uri]
|
||||
}
|
||||
|
||||
if {[file isdir $file]} {error "$file is a directory"}
|
||||
forcedelete $file
|
||||
do_test 1.$tn.1 { file exists $file } 0
|
||||
set DB [sqlite3_open $uri]
|
||||
@ -90,9 +91,9 @@ foreach {tn uri kvlist} {
|
||||
3 file:test.db?hello=1&world=2&vfs=tvfs {hello 1 world 2 vfs tvfs}
|
||||
4 file:test.db?hello=1&world=2&vfs=tvfs2 {}
|
||||
5 file:test.db?%68%65%6C%6C%6F=%77%6F%72%6C%64 {hello world}
|
||||
6 file:test%00.db?hello%00extra=world%00ex {hello world}
|
||||
7 file:test%00.db?hello%00=world%00 {hello world}
|
||||
8 file:test%00.db?=world&xyz=abc {xyz abc}
|
||||
6 file:testdb%00.db?hello%00extra=world%00ex {hello world}
|
||||
7 file:testdb%00.db?hello%00=world%00 {hello world}
|
||||
8 file:testdb%00.db?=world&xyz=abc {xyz abc}
|
||||
9 file:test.db?%00hello=world&xyz=abc {xyz abc}
|
||||
10 file:test.db?hello=%00world&xyz= {hello {} xyz {}}
|
||||
11 file:test.db?=#ravada {}
|
||||
|
Reference in New Issue
Block a user