OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |