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

Side by Side Diff: third_party/sqlite/src/test/io.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/intpkey.test ('k') | third_party/sqlite/src/test/join2.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 # 2007 August 21 1 # 2007 August 21
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 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 # have been no calls to fsync(). The file is probably about 30KB. 417 # have been no calls to fsync(). The file is probably about 30KB.
418 # But some VFS implementations (symbian) buffer writes so the actual 418 # But some VFS implementations (symbian) buffer writes so the actual
419 # size may be a little less than that. So this test case just tests 419 # size may be a little less than that. So this test case just tests
420 # that the file is now greater than 20000 bytes in size. 420 # that the file is now greater than 20000 bytes in size.
421 list [expr [file size test.db]>20000] [nSync] 421 list [expr [file size test.db]>20000] [nSync]
422 } {1 0} 422 } {1 0}
423 do_test io-3.3 { 423 do_test io-3.3 {
424 # The COMMIT requires a single fsync() - to the database file. 424 # The COMMIT requires a single fsync() - to the database file.
425 execsql { COMMIT } 425 execsql { COMMIT }
426 list [file size test.db] [nSync] 426 list [file size test.db] [nSync]
427 } {39936 1} 427 } "[expr {[nonzero_reserved_bytes]?40960:39936}] 1"
428 } 428 }
429 429
430 #---------------------------------------------------------------------- 430 #----------------------------------------------------------------------
431 # Test cases io-4.* test the IOCAP_SAFE_APPEND optimization. 431 # Test cases io-4.* test the IOCAP_SAFE_APPEND optimization.
432 # 432 #
433 sqlite3_simulate_device -char safe_append 433 sqlite3_simulate_device -char safe_append
434 434
435 # With the SAFE_APPEND flag set, simple transactions require 3, rather 435 # With the SAFE_APPEND flag set, simple transactions require 3, rather
436 # than 4, calls to fsync(). The fsync() calls are on: 436 # than 4, calls to fsync(). The fsync() calls are on:
437 # 437 #
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 # database should be cached in the pager-cache. If corruption is 634 # database should be cached in the pager-cache. If corruption is
635 # reported, it indicates that executing $sql caused the pager cache 635 # reported, it indicates that executing $sql caused the pager cache
636 # to be flushed. Which is a bug. 636 # to be flushed. Which is a bug.
637 hexio_write test.db [expr 1024 * 5] [string repeat 00 2048] 637 hexio_write test.db [expr 1024 * 5] [string repeat 00 2048]
638 do_execsql_test 6.2.$tn.3 { PRAGMA integrity_check } {ok} 638 do_execsql_test 6.2.$tn.3 { PRAGMA integrity_check } {ok}
639 db close 639 db close
640 } 640 }
641 641
642 sqlite3_simulate_device -char {} -sectorsize 0 642 sqlite3_simulate_device -char {} -sectorsize 0
643 finish_test 643 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/intpkey.test ('k') | third_party/sqlite/src/test/join2.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698