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

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

Issue 2751253002: [sql] Import SQLite 3.17.0. (Closed)
Patch Set: also clang on Linux i386 Created 3 years, 9 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/exists.test ('k') | third_party/sqlite/src/test/filefmt.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 # 2008 Jan 22 1 # 2008 Jan 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 25 matching lines...) Expand all
36 sqlite3 db test_control_lockproxy.db 36 sqlite3 db test_control_lockproxy.db
37 file_control_lockproxy_test db [get_pwd] 37 file_control_lockproxy_test db [get_pwd]
38 } {} 38 } {}
39 do_test filectrl-1.6 { 39 do_test filectrl-1.6 {
40 sqlite3 db test.db 40 sqlite3 db test.db
41 set fn [file_control_tempfilename db] 41 set fn [file_control_tempfilename db]
42 set fn 42 set fn
43 } {/etilqs_/} 43 } {/etilqs_/}
44 db close 44 db close
45 forcedelete .test_control_lockproxy.db-conch test.proxy 45 forcedelete .test_control_lockproxy.db-conch test.proxy
46 forcedelete test.db test2.db
47
48 if {$tcl_platform(platform)=="windows"} {
49 do_test filectrl-2.1 {
50 sqlite3 db test2.db
51 set size [file size test2.db]
52 set handle [file_control_win32_get_handle db]
53 db close
54 forcedelete test2.db
55 list $size $handle [expr {$handle != 0}]
56 } {/^0 \{0 [0-9A-Fa-f]+\} 1$/}
57
58 do_test filectrl-2.2 {
59 sqlite3 db test2.db
60 execsql {
61 CREATE TABLE t1(x);
62 INSERT INTO t1 (x) VALUES(RANDOMBLOB(1048576));
63 }
64 set size [file size test2.db]
65 set handle [file_control_win32_get_handle db]
66 db close
67 forcedelete test2.db
68 list $size $handle [expr {$handle != 0}]
69 } {/^1\d+ \{0 [0-9A-Fa-f]+\} 1$/}
70 }
71
46 finish_test 72 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/exists.test ('k') | third_party/sqlite/src/test/filefmt.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698