diff options
author | dan miller | 2007-10-21 08:36:32 +0000 |
---|---|---|
committer | dan miller | 2007-10-21 08:36:32 +0000 |
commit | 2f8d7092bc2c9609fa98d6888106b96f38b22828 (patch) | |
tree | da6c37579258cc965b52a75aee6135fe44237698 /libraries/sqlite/unix/sqlite-3.5.1/test/mallocD.test | |
parent | * Committing new PolicyManager based on an ACL system. (diff) | |
download | opensim-SC-2f8d7092bc2c9609fa98d6888106b96f38b22828.zip opensim-SC-2f8d7092bc2c9609fa98d6888106b96f38b22828.tar.gz opensim-SC-2f8d7092bc2c9609fa98d6888106b96f38b22828.tar.bz2 opensim-SC-2f8d7092bc2c9609fa98d6888106b96f38b22828.tar.xz |
libraries moved to opensim-libs, a new repository
Diffstat (limited to 'libraries/sqlite/unix/sqlite-3.5.1/test/mallocD.test')
-rw-r--r-- | libraries/sqlite/unix/sqlite-3.5.1/test/mallocD.test | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/libraries/sqlite/unix/sqlite-3.5.1/test/mallocD.test b/libraries/sqlite/unix/sqlite-3.5.1/test/mallocD.test deleted file mode 100644 index f816bdc..0000000 --- a/libraries/sqlite/unix/sqlite-3.5.1/test/mallocD.test +++ /dev/null | |||
@@ -1,61 +0,0 @@ | |||
1 | # 2007 Aug 29 | ||
2 | # | ||
3 | # The author disclaims copyright to this source code. In place of | ||
4 | # a legal notice, here is a blessing: | ||
5 | # | ||
6 | # May you do good and not evil. | ||
7 | # May you find forgiveness for yourself and forgive others. | ||
8 | # May you share freely, never taking more than you give. | ||
9 | # | ||
10 | #*********************************************************************** | ||
11 | # | ||
12 | # $Id: mallocD.test,v 1.3 2007/09/03 17:02:50 drh Exp $ | ||
13 | |||
14 | set testdir [file dirname $argv0] | ||
15 | source $testdir/tester.tcl | ||
16 | |||
17 | # Only run these tests if memory debugging is turned on. | ||
18 | # | ||
19 | ifcapable !memdebug { | ||
20 | puts "Skipping mallocD tests: not compiled with -DSQLITE_MEMDEBUG..." | ||
21 | finish_test | ||
22 | return | ||
23 | } | ||
24 | source $testdir/malloc_common.tcl | ||
25 | |||
26 | sqlite3_simulate_device -char atomic | ||
27 | |||
28 | set PREP { | ||
29 | PRAGMA page_size = 1024; | ||
30 | CREATE TABLE abc(a, b, c); | ||
31 | } | ||
32 | |||
33 | do_malloc_test mallocD-1 -sqlprep $PREP -sqlbody { | ||
34 | INSERT INTO abc VALUES(1, 2, 3); | ||
35 | } | ||
36 | |||
37 | do_malloc_test mallocD-2 -sqlprep $PREP -sqlbody { | ||
38 | BEGIN; | ||
39 | INSERT INTO abc VALUES(1, 2, 3); | ||
40 | INSERT INTO abc VALUES(4, 5, 6); | ||
41 | ROLLBACK; | ||
42 | } | ||
43 | |||
44 | do_malloc_test mallocD-3 -sqlprep $PREP -sqlbody { | ||
45 | BEGIN; | ||
46 | INSERT INTO abc VALUES(1, 2, 3); | ||
47 | INSERT INTO abc VALUES(4, 5, randstr(1500,1500)); | ||
48 | COMMIT; | ||
49 | } | ||
50 | |||
51 | do_malloc_test mallocD-4 -sqlprep $PREP -sqlbody { | ||
52 | ATTACH 'test2.db' AS aux; | ||
53 | BEGIN; | ||
54 | CREATE TABLE aux.def(d, e, f); | ||
55 | INSERT INTO abc VALUES(4, 5, 6); | ||
56 | COMMIT; | ||
57 | } | ||
58 | |||
59 | sqlite3_simulate_device -char {} | ||
60 | |||
61 | finish_test | ||