Get the io.test tests working on windows. (CVS 4381)

FossilOrigin-Name: 1be70015e24f715a4276f253d2e0c0eec44650ee
diff --git a/test/mallocD.test b/test/mallocD.test
index 0e46830..f816bdc 100644
--- a/test/mallocD.test
+++ b/test/mallocD.test
@@ -9,12 +9,19 @@
 #
 #***********************************************************************
 #
-# $Id: mallocD.test,v 1.2 2007/09/03 07:31:10 danielk1977 Exp $
+# $Id: mallocD.test,v 1.3 2007/09/03 17:02:50 drh Exp $
 
 set testdir [file dirname $argv0]
 source $testdir/tester.tcl
 
-if {![source $testdir/malloc_common.tcl]} return
+# Only run these tests if memory debugging is turned on.
+#
+ifcapable !memdebug {
+   puts "Skipping mallocD tests: not compiled with -DSQLITE_MEMDEBUG..."
+   finish_test
+   return
+}
+source $testdir/malloc_common.tcl
 
 sqlite3_simulate_device -char atomic
 
@@ -52,4 +59,3 @@
 sqlite3_simulate_device -char {}
 
 finish_test
-