Make the test_async backend work again. (CVS 4293)

FossilOrigin-Name: 04167483aad42d319393e8caf470d8de11e468d8
diff --git a/test/async2.test b/test/async2.test
index 83d3c7f..0744622 100644
--- a/test/async2.test
+++ b/test/async2.test
@@ -5,17 +5,22 @@
 #
 #***********************************************************************
 #
-# $Id: async2.test,v 1.3 2006/02/14 14:02:08 danielk1977 Exp $
+# $Id: async2.test,v 1.4 2007/08/25 12:29:30 danielk1977 Exp $
 
 
-if {[info commands sqlite3async_enable]==""} {
-  # The async logic is not built into this system
-  return
-}
-
 set testdir [file dirname $argv0]
 source $testdir/tester.tcl
 
+if {
+  [info commands sqlite3async_enable]=="" ||
+  [info command sqlite_malloc_stat]==""
+} {
+  # The async logic is not built into this system
+  puts "Skipping async2 tests: not compiled with required features"
+  finish_test
+  return
+}
+
 # Enable asynchronous IO.
 
 set setup_script {