aboutsummaryrefslogtreecommitdiff
path: root/test/shared_err.test
diff options
context:
space:
mode:
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
-