Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Side by Side Diff: third_party/sqlite/src/test/uri.test

Issue 1610963002: Import SQLite 3.10.2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/sqlite/src/test/unique2.test ('k') | third_party/sqlite/src/test/vacuum2.test » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # 2011 April 22 1 # 2011 April 22
2 # 2 #
3 # The author disclaims copyright to this source code. In place of 3 # The author disclaims copyright to this source code. In place of
4 # a legal notice, here is a blessing: 4 # a legal notice, here is a blessing:
5 # 5 #
6 # May you do good and not evil. 6 # May you do good and not evil.
7 # May you find forgiveness for yourself and forgive others. 7 # May you find forgiveness for yourself and forgive others.
8 # May you share freely, never taking more than you give. 8 # May you share freely, never taking more than you give.
9 # 9 #
10 #*********************************************************************** 10 #***********************************************************************
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 if {$tcl_platform(platform)=="windows"} { 58 if {$tcl_platform(platform)=="windows"} {
59 # 59 #
60 # NOTE: Due to limits on legal characters for file names imposed by 60 # NOTE: Due to limits on legal characters for file names imposed by
61 # Windows, we must skip the final two tests here (i.e. the 61 # Windows, we must skip the final two tests here (i.e. the
62 # question mark is illegal in a file name on Windows). 62 # question mark is illegal in a file name on Windows).
63 # 63 #
64 if {$tn>14} break 64 if {$tn>14} break
65 65
66 # 66 #
67 # NOTE: When running on Tcl 8.6 (or higher?) on Windows, a colon within
68 # the file name no longer tries to access an alternate data stream
69 # (ADS) named "test.db" for the "http" file, causing some spurious
70 # failures of this test.
71 #
72 if {$tn==12 && $::tcl_version>=8.6} continue
73
74 #
67 # NOTE: On Windows, we need to account for the fact that the current 75 # NOTE: On Windows, we need to account for the fact that the current
68 # directory does not start with a forward slash. 76 # directory does not start with a forward slash.
69 # 77 #
70 set uri [string map [list PWD/ /[test_pwd /]] $uri] 78 set uri [string map [list PWD/ /[test_pwd /]] $uri]
71 } else { 79 } else {
72 set uri [string map [list PWD/ [test_pwd /]] $uri] 80 set uri [string map [list PWD/ [test_pwd /]] $uri]
73 } 81 }
74 82
75 if {[file isdir $file]} {error "$file is a directory"} 83 if {[file isdir $file]} {error "$file is a directory"}
76 forcedelete $file 84 forcedelete $file
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 execsql { ATTACH 'file:test.db2?mode=rw' AS aux } 326 execsql { ATTACH 'file:test.db2?mode=rw' AS aux }
319 } {} 327 } {}
320 do_execsql_test 7.3 { 328 do_execsql_test 7.3 {
321 INSERT INTO t2 VALUES('c', 'd') 329 INSERT INTO t2 VALUES('c', 'd')
322 } {} 330 } {}
323 do_catchsql_test 7.4 { 331 do_catchsql_test 7.4 {
324 INSERT INTO t1 VALUES(3, 4) 332 INSERT INTO t1 VALUES(3, 4)
325 } {1 {attempt to write a readonly database}} 333 } {1 {attempt to write a readonly database}}
326 334
327 finish_test 335 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/unique2.test ('k') | third_party/sqlite/src/test/vacuum2.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698