summaryrefslogtreecommitdiff
path: root/components/external/SQLite-3.8.1/test/mallocI.test
diff options
context:
space:
mode:
authorbernard <[email protected]>2017-11-02 13:50:42 +0800
committerbernard <[email protected]>2017-11-02 13:50:42 +0800
commitb2057f506a09e2adef81fc77efd697d16ae14bec (patch)
tree3affefabfe376a0ec1b3ac4a5eef957c1dd58dc8 /components/external/SQLite-3.8.1/test/mallocI.test
parent23582c8129228b4961ad35319cfd2d270039345f (diff)
[External] Remove external from RT-Thread
Diffstat (limited to 'components/external/SQLite-3.8.1/test/mallocI.test')
-rw-r--r--components/external/SQLite-3.8.1/test/mallocI.test64
1 files changed, 0 insertions, 64 deletions
diff --git a/components/external/SQLite-3.8.1/test/mallocI.test b/components/external/SQLite-3.8.1/test/mallocI.test
deleted file mode 100644
index 1229455505..0000000000
--- a/components/external/SQLite-3.8.1/test/mallocI.test
+++ /dev/null
@@ -1,64 +0,0 @@
-# 2008 August 01
-#
-# 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 test script checks malloc failures in various obscure operations.
-#
-# $Id: mallocI.test,v 1.3 2009/08/10 04:26:39 danielk1977 Exp $
-
-set testdir [file dirname $argv0]
-source $testdir/tester.tcl
-source $testdir/malloc_common.tcl
-
-# Malloc failures in a view.
-#
-do_malloc_test mallocI-1 -sqlprep {
- CREATE TABLE t1(a,b,c,d);
- CREATE VIEW v1 AS SELECT a*b, c*d FROM t1 ORDER BY b-d;
-} -sqlbody {
- SELECT * FROM v1
-}
-
-# Malloc failure while trying to service a pragma on a TEMP database.
-#
-do_malloc_test mallocI-2 -sqlbody {
- PRAGMA temp.page_size
-}
-
-# Malloc failure while creating a table from a SELECT statement.
-#
-do_malloc_test mallocI-3 -sqlprep {
- CREATE TABLE t1(a,b,c);
-} -sqlbody {
- CREATE TABLE t2 AS SELECT b,c FROM t1;
-}
-
-# This tests that a malloc failure that occurs while passing the schema
-# does not result in a SHARED lock being left on the database file.
-#
-do_malloc_test mallocI-4 -tclprep {
- sqlite3 db2 test.db
- db2 eval {
- CREATE TABLE t1(a, b, c);
- CREATE TABLE t2(a, b, c);
- }
-} -sqlbody {
- SELECT * FROM t1
-} -cleanup {
- do_test mallocI-4.$::n.2 {
- # If this INSERT is possible then [db] does not hold a shared lock
- # on the database file.
- catchsql { INSERT INTO t1 VALUES(1, 2, 3) } db2
- } {0 {}}
- catch {db2 close}
-}
-catch { db2 close }
-
-finish_test