⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 async.test

📁 最新的sqlite3.6.2源代码
💻 TEST
字号:
##    May you do good and not evil.#    May you find forgiveness for yourself and forgive others.#    May you share freely, never taking more than you give.##***********************************************************************# This file runs all tests.## $Id: async.test,v 1.13 2007/11/05 17:01:08 danielk1977 Exp $if {[catch {sqlite3async_enable}]} {  # The async logic is not built into this system  return}set testdir [file dirname $argv0]source $testdir/tester.tclrename finish_test really_finish_testproc finish_test {} {  catch {db close}  catch {db2 close}  catch {db3 close}}set ISQUICK 1set INCLUDE {  insert.test  insert2.test  insert3.test  lock.test  lock2.test  lock3.test  select1.test  select2.test  select3.test  select4.test  trans.test}# Enable asynchronous IO.sqlite3async_enable 1rename do_test really_do_testproc do_test {name args} {  uplevel really_do_test async_io-$name $args  sqlite3async_start  sqlite3async_halt idle  sqlite3async_wait  sqlite3async_halt never}foreach testfile [lsort -dictionary [glob $testdir/*.test]] {  set tail [file tail $testfile]  if {[lsearch -exact $INCLUDE $tail]<0} continue  source $testfile  # Make sure everything is flushed through. This is because [source]ing   # the next test file will delete the database file on disk (using  # [file delete]). If the asynchronous backend still has the file  # open, it will become confused.  #  sqlite3async_halt idle  sqlite3async_start  sqlite3async_wait  sqlite3async_halt never}# Flush the write-queue and disable asynchronous IO. This should ensure# all allocated memory is cleaned up.set sqlite3async_trace 1sqlite3async_halt idlesqlite3async_startsqlite3async_waitsqlite3async_halt neversqlite3async_enable 0set sqlite3async_trace 0really_finish_testrename really_do_test do_testrename really_finish_test finish_test

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -