~ubuntu-branches/ubuntu/precise/sqlite3/precise-updates

« back to all changes in this revision

Viewing changes to test/io.test

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2009-12-11 14:34:09 UTC
  • mfrom: (9.1.7 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091211143409-o29fahwmcmyd0vq1
Tags: 3.6.21-2
Run autoreconf to prevent FTBFS with new libtool (closes: #560660).

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
# IO traffic generated by SQLite (making sure SQLite is not writing out
14
14
# more database pages than it has to, stuff like that).
15
15
#
16
 
# $Id: io.test,v 1.21 2009/03/28 07:03:42 danielk1977 Exp $
17
16
 
18
17
set testdir [file dirname $argv0]
19
18
source $testdir/tester.tcl
425
424
# Normally, when the SAFE_APPEND flag is not set, there is another fsync()
426
425
# on the journal file between steps (2) and (3) above.
427
426
#
 
427
set expected_sync_count 2
428
428
if {$::tcl_platform(platform)=="unix"} {
429
 
  set expected_sync_count 3
430
 
} else {
431
 
  set expected_sync_count 2
 
429
  ifcapable dirsync {
 
430
    incr expected_sync_count
 
431
  }
432
432
}
 
433
 
433
434
do_test io-4.1 {
434
435
  execsql { DELETE FROM abc }
435
436
  nSync