You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by hw...@apache.org on 2012/05/24 20:52:18 UTC

svn commit: r1342375 - /subversion/trunk/subversion/tests/libsvn_wc/wc-queries-test.c

Author: hwright
Date: Thu May 24 18:52:18 2012
New Revision: 1342375

URL: http://svn.apache.org/viewvc?rev=1342375&view=rev
Log:
Use a #if for a compile-time check, rather than an if().

* subversion/tests/libsvn_wc/wc-queries-test.c
  (test_sqlite_version): Use the preprocessor when determining which version
    of SQLite we're building with, rather than doing so at runtime.

Modified:
    subversion/trunk/subversion/tests/libsvn_wc/wc-queries-test.c

Modified: subversion/trunk/subversion/tests/libsvn_wc/wc-queries-test.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/libsvn_wc/wc-queries-test.c?rev=1342375&r1=1342374&r2=1342375&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/libsvn_wc/wc-queries-test.c (original)
+++ subversion/trunk/subversion/tests/libsvn_wc/wc-queries-test.c Thu May 24 18:52:18 2012
@@ -183,8 +183,8 @@ test_sqlite_version(apr_pool_t *scratch_
             "Compiled against Sqlite %s (at runtime we have Sqlite %s)",
             SQLITE_VERSION, sqlite3_version);
 
-  if (! SQLITE_VERSION_AT_LEAST(3, 7, 9))
-    return svn_error_create(SVN_ERR_TEST_FAILED, NULL,
+#if !SQLITE_VERSION_AT_LEAST(3, 7, 9)
+  return svn_error_create(SVN_ERR_TEST_FAILED, NULL,
         "Sqlite upgrade recommended:\n"
         "****************************************************************\n"
         "*   Subversion needs at least SQLite 3.7.9 to work optimally   *\n"
@@ -199,8 +199,9 @@ test_sqlite_version(apr_pool_t *scratch_
         "*                                                              *\n"
         "*                SQLITE UPGRADE RECOMMENDED                    *\n"
         "****************************************************************\n");
-
+#else
   return SVN_NO_ERROR;
+#endif
 }
 
 /* Parse all normal queries */