sqlcipher/test/filectrl.test

48 lines
1.1 KiB
Plaintext
Raw Normal View History

2008-07-30 13:15:43 +00:00
# 2008 Jan 22
#
# The author disclaims copyright to this source code. In place of
# a legal notice, here is a blessing:
#
# 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.
#
#***********************************************************************
#
2009-02-20 20:33:35 +00:00
# $Id: filectrl.test,v 1.2 2008/11/21 00:10:35 aswift Exp $
2008-07-30 13:15:43 +00:00
set testdir [file dirname $argv0]
source $testdir/tester.tcl
do_test filectrl-1.1 {
file_control_test db
} {}
do_test filectrl-1.2 {
db eval {CREATE TEMP TABLE x(y);}
file_control_test db
} {}
do_test filectrl-1.3 {
db close
sqlite3 db :memory:
file_control_test db
} {}
2009-02-20 20:33:35 +00:00
do_test filectrl-1.4 {
sqlite3 db test.db
file_control_lasterrno_test db
} {}
do_test filectrl-1.5 {
db close
sqlite3 db test_control_lockproxy.db
2012-05-15 23:05:34 +00:00
file_control_lockproxy_test db [get_pwd]
2009-02-20 20:33:35 +00:00
} {}
2013-01-15 22:38:05 +00:00
do_test filectrl-1.6 {
sqlite3 db test.db
set fn [file_control_tempfilename db]
puts -nonewline \[$fn\]
set fn
} {/etilqs_/}
2009-02-20 20:33:35 +00:00
db close
2011-12-26 19:52:17 +00:00
forcedelete .test_control_lockproxy.db-conch test.proxy
2008-07-30 13:15:43 +00:00
finish_test