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

Unified Diff: third_party/sqlite/src/test/sync.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/sqlite/src/test/symlink.test ('k') | third_party/sqlite/src/test/syscall.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/sync.test
diff --git a/third_party/sqlite/src/test/sync.test b/third_party/sqlite/src/test/sync.test
index 14252b5c08af33a59917bc79269cced40ed2aacb..210039acb5b7ace866ea5046ecf7ca050aa706c9 100644
--- a/third_party/sqlite/src/test/sync.test
+++ b/third_party/sqlite/src/test/sync.test
@@ -13,7 +13,6 @@
# This file implements tests to verify that fsync is disabled when
# pragma synchronous=off even for multi-database commits.
#
-# $Id: sync.test,v 1.6 2007/10/09 08:29:33 danielk1977 Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@@ -33,7 +32,7 @@ proc cond_incr_sync_count {adj} {
global sqlite_sync_count
if {$::tcl_platform(platform) == "windows"} {
incr sqlite_sync_count $adj
- } {
+ } else {
ifcapable !dirsync {
incr sqlite_sync_count $adj
}
@@ -64,9 +63,9 @@ ifcapable pager_pragmas {
INSERT INTO t2 VALUES(3,4);
COMMIT;
}
- cond_incr_sync_count 3
+ cond_incr_sync_count 4
set sqlite_sync_count
- } 8
+ } 9
}
do_test sync-1.3 {
set sqlite_sync_count 0
@@ -78,10 +77,11 @@ do_test sync-1.3 {
INSERT INTO t2 VALUES(5,6);
COMMIT;
}
- cond_incr_sync_count 3
+ cond_incr_sync_count 4
set sqlite_sync_count
-} 10
+} 11
ifcapable pager_pragmas {
+if {[permutation]!="journaltest"} {
do_test sync-1.4 {
set sqlite_sync_count 0
execsql {
@@ -95,6 +95,7 @@ ifcapable pager_pragmas {
set sqlite_sync_count
} 0
}
+}
finish_test
« no previous file with comments | « third_party/sqlite/src/test/symlink.test ('k') | third_party/sqlite/src/test/syscall.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698