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/journal3.test | |
| parent | 23582c8129228b4961ad35319cfd2d270039345f (diff) | |
[External] Remove external from RT-Thread
Diffstat (limited to 'components/external/SQLite-3.8.1/test/journal3.test')
| -rw-r--r-- | components/external/SQLite-3.8.1/test/journal3.test | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/components/external/SQLite-3.8.1/test/journal3.test b/components/external/SQLite-3.8.1/test/journal3.test deleted file mode 100644 index 939cc27c70..0000000000 --- a/components/external/SQLite-3.8.1/test/journal3.test +++ /dev/null @@ -1,63 +0,0 @@ -# 2010 July 15 -# -# 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. -# -#*********************************************************************** -# This file implements regression tests for SQLite library. -# - -set testdir [file dirname $argv0] -source $testdir/tester.tcl -source $testdir/lock_common.tcl -source $testdir/malloc_common.tcl - -#------------------------------------------------------------------------- -# If a connection is required to create a journal file, it creates it with -# the same file-system permissions as the database file itself. Test this. -# -if {$::tcl_platform(platform) == "unix"} { - - # Changed on 2012-02-13: umask is deliberately ignored for -wal, -journal, - # and -shm files. - #set umask [exec /bin/sh -c umask] - faultsim_delete_and_reopen - do_test journal3-1.1 { execsql { CREATE TABLE tx(y, z) } } {} - - foreach {tn permissions} { - 1 00644 - 2 00666 - 3 00600 - 4 00755 - } { - db close - #set effective [format %.5o [expr $permissions & ~$umask]] - set effective $permissions - do_test journal3-1.2.$tn.1 { - catch { forcedelete test.db-journal } - file attributes test.db -permissions $permissions - file attributes test.db -permissions - } $permissions - do_test journal3-1.2.$tn.2 { file exists test.db-journal } {0} - do_test journal3-1.2.$tn.3 { - sqlite3 db test.db - execsql { - BEGIN; - INSERT INTO tx DEFAULT VALUES; - } - file exists test.db-journal - } {1} - do_test journal3-1.2.$tn.4 { - file attr test.db-journal -perm - } $effective - do_execsql_test journal3-1.2.$tn.5 { ROLLBACK } {} - } - - -} - -finish_test |
