mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
Add the vfs_unregister_all and vfs_reregister_all test commands. Use them
to test the sqlite3_sleep() interface when no VFSes are registered. (CVS 5348) FossilOrigin-Name: 024d439299478062b6efdb63adce85b251af18ce
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
# This file implements regression tests for SQLite library. The
|
||||
# focus of this script testing the callback-free C/C++ API.
|
||||
#
|
||||
# $Id: capi3.test,v 1.65 2008/06/23 17:56:47 drh Exp $
|
||||
# $Id: capi3.test,v 1.66 2008/07/07 13:32:00 drh Exp $
|
||||
#
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
@ -1184,4 +1184,13 @@ do_test capi3-19.1 {
|
||||
sqlite3_prepare_tkt3134 db
|
||||
} {}
|
||||
|
||||
# Tests of the interface when no VFS is registered.
|
||||
#
|
||||
db close
|
||||
vfs_unregister_all
|
||||
do_test capi3-20.1 {
|
||||
sqlite3_sleep 100
|
||||
} {0}
|
||||
vfs_reregister_all
|
||||
|
||||
finish_test
|
||||
|
Reference in New Issue
Block a user