Index: third_party/sqlite/src/src/os_common.h |
diff --git a/third_party/sqlite/src/src/os_common.h b/third_party/sqlite/src/src/os_common.h |
index eba856be8adab39dca61d1c70eae74016da3212e..f6c3e7ff89463086401822f481e7e3b87b2c78c7 100644 |
--- a/third_party/sqlite/src/src/os_common.h |
+++ b/third_party/sqlite/src/src/os_common.h |
@@ -29,11 +29,14 @@ |
# error "The MEMORY_DEBUG macro is obsolete. Use SQLITE_DEBUG instead." |
#endif |
-#ifdef SQLITE_DEBUG |
-int sqlite3OSTrace = 0; |
-#define OSTRACE(X) if( sqlite3OSTrace ) sqlite3DebugPrintf X |
+#if defined(SQLITE_TEST) && defined(SQLITE_DEBUG) |
+# ifndef SQLITE_DEBUG_OS_TRACE |
+# define SQLITE_DEBUG_OS_TRACE 0 |
+# endif |
+ int sqlite3OSTrace = SQLITE_DEBUG_OS_TRACE; |
+# define OSTRACE(X) if( sqlite3OSTrace ) sqlite3DebugPrintf X |
#else |
-#define OSTRACE(X) |
+# define OSTRACE(X) |
#endif |
/* |