aboutsummaryrefslogtreecommitdiff
path: root/test/shared_err.test
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2006-01-23 23:49:34 +0000
committerdrh <drh@noemail.net>2006-01-23 23:49:34 +0000
commit7b3822b36b6c1a070f53eb1cd38409933fbb5fac (patch)
treee8ce64e978d5648869a757a59c666633e23e2071 /test/shared_err.test
parent36a5005946bb1f45b22253261b2fe251be8debf6 (diff)
downloadsqlite-7b3822b36b6c1a070f53eb1cd38409933fbb5fac.tar.gz
sqlite-7b3822b36b6c1a070f53eb1cd38409933fbb5fac.zip
Disable shared-cache OOM tests if not compiled with -DSQLITE_MEMDEBUG. (CVS 3016)
FossilOrigin-Name: 2d896667e460dcdaf83d18bd03050e917d54edc7
Diffstat (limited to 'test/shared_err.test')
-rw-r--r--test/shared_err.test11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/shared_err.test b/test/shared_err.test
index 3f954c682..9a0478836 100644
--- a/test/shared_err.test
+++ b/test/shared_err.test
@@ -13,7 +13,7 @@
# cache context. What happens to connection B if one connection A encounters
# an IO-error whilst reading or writing the file-system?
#
-# $Id: shared_err.test,v 1.5 2006/01/23 13:09:47 danielk1977 Exp $
+# $Id: shared_err.test,v 1.6 2006/01/23 23:49:34 drh Exp $
proc skip {args} {}
@@ -269,6 +269,14 @@ do_ioerr_test shared_ioerr-3 -tclprep {
db2 close
}
+# Only run these tests if memory debugging is turned on.
+#
+if {[info command sqlite_malloc_stat]==""} {
+ puts "Skipping malloc tests: not compiled with -DSQLITE_MEMDEBUG..."
+ finish_test
+ return
+}
+
# Provoke a malloc() failure when a cursor position is being saved. This
# only happens with index cursors (because they malloc() space to save the
# current key value). It does not happen with tables, because an integer
@@ -326,4 +334,3 @@ do_malloc_test 5 -tclbody {
catch {db close}
sqlite3_enable_shared_cache $::enable_shared_cache
finish_test
-