diff options
| author | bernard <[email protected]> | 2017-11-02 13:50:42 +0800 |
|---|---|---|
| committer | bernard <[email protected]> | 2017-11-02 13:50:42 +0800 |
| commit | b2057f506a09e2adef81fc77efd697d16ae14bec (patch) | |
| tree | 3affefabfe376a0ec1b3ac4a5eef957c1dd58dc8 /components/external/SQLite-3.8.1/test/close.test | |
| parent | 23582c8129228b4961ad35319cfd2d270039345f (diff) | |
[External] Remove external from RT-Thread
Diffstat (limited to 'components/external/SQLite-3.8.1/test/close.test')
| -rw-r--r-- | components/external/SQLite-3.8.1/test/close.test | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/components/external/SQLite-3.8.1/test/close.test b/components/external/SQLite-3.8.1/test/close.test deleted file mode 100644 index d5d6391ae5..0000000000 --- a/components/external/SQLite-3.8.1/test/close.test +++ /dev/null @@ -1,78 +0,0 @@ -# 2013 May 14 -# -# 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. -# -#*********************************************************************** -# -# Test some specific circumstances to do with shared cache mode. -# - - -set testdir [file dirname $argv0] -source $testdir/tester.tcl -set ::testprefix close - -do_execsql_test 1.0 { - CREATE TABLE t1(x); - INSERT INTO t1 VALUES('one'); - INSERT INTO t1 VALUES('two'); - INSERT INTO t1 VALUES('three'); -} -db close - -do_test 1.1 { - set DB [sqlite3_open test.db] - sqlite3_close_v2 $DB -} {SQLITE_OK} - -do_test 1.2.1 { - set DB [sqlite3_open test.db] - set STMT [sqlite3_prepare $DB "SELECT * FROM t1" -1 dummy] - sqlite3_close_v2 $DB -} {SQLITE_OK} -do_test 1.2.2 { - sqlite3_finalize $STMT -} {SQLITE_OK} - -do_test 1.3.1 { - set DB [sqlite3_open test.db] - set STMT [sqlite3_prepare $DB "SELECT * FROM t1" -1 dummy] - sqlite3_step $STMT - sqlite3_close_v2 $DB -} {SQLITE_OK} - -do_test 1.3.2 { - sqlite3_column_text $STMT 0 -} {one} - -do_test 1.3.3 { - sqlite3_finalize $STMT -} {SQLITE_OK} - -do_test 1.4.1 { - set DB [sqlite3_open test.db] - set STMT [sqlite3_prepare $DB "SELECT * FROM t1" -1 dummy] - sqlite3_step $STMT - sqlite3_close_v2 $DB -} {SQLITE_OK} - -do_test 1.4.2 { - list [sqlite3_step $STMT] [sqlite3_column_text $STMT 0] -} {SQLITE_ROW two} - -do_test 1.4.3 { - list [catch { - sqlite3_prepare $DB "SELECT * FROM sqlite_master" -1 dummy - } msg] $msg -} {1 {(21) library routine called out of sequence}} - -do_test 1.4.4 { - sqlite3_finalize $STMT -} {SQLITE_OK} - -finish_test |
