Author: kotkov
Date: Wed Nov 23 13:37:32 2022
New Revision: 1905488

URL: http://svn.apache.org/viewvc?rev=1905488&view=rev
Log:
On the 'pristines-on-demand-on-mwf' branch: Following up on r1897977,
fix an incorrect check in the stmt_for_f31_or_f32() test helper.

* subversion/tests/libsvn_wc/op-depth-test.c
  (stmt_for_f31_or_f32): Fix the inverted check.
  (insert_actual): Swap the arguments when calling stmt_for_f31_or_f32().

Modified:
    
subversion/branches/pristines-on-demand-on-mwf/subversion/tests/libsvn_wc/op-depth-test.c

Modified: 
subversion/branches/pristines-on-demand-on-mwf/subversion/tests/libsvn_wc/op-depth-test.c
URL: 
http://svn.apache.org/viewvc/subversion/branches/pristines-on-demand-on-mwf/subversion/tests/libsvn_wc/op-depth-test.c?rev=1905488&r1=1905487&r2=1905488&view=diff
==============================================================================
--- 
subversion/branches/pristines-on-demand-on-mwf/subversion/tests/libsvn_wc/op-depth-test.c
 (original)
+++ 
subversion/branches/pristines-on-demand-on-mwf/subversion/tests/libsvn_wc/op-depth-test.c
 Wed Nov 23 13:37:32 2022
@@ -2085,7 +2085,7 @@ stmt_for_f31_or_f32(svn_test__sandbox_t
     }
 
   return (wcroot->format >= SVN_WC__PRISTINES_ON_DEMAND_VERSION
-          ? stmt_for_f31 : stmt_for_f32);
+          ? stmt_for_f32 : stmt_for_f31);
 }
 
 static svn_error_t *
@@ -2119,8 +2119,8 @@ insert_actual(svn_test__sandbox_t *b,
           SVN_ERR(svn_sqlite__get_statement(&stmt, sdb,
                                             stmt_for_f31_or_f32(
                                               b,
-                                              STMT_ENSURE_EMPTY_PRISTINE_F32,
-                                              
STMT_ENSURE_EMPTY_PRISTINE_F31)));
+                                              STMT_ENSURE_EMPTY_PRISTINE_F31,
+                                              
STMT_ENSURE_EMPTY_PRISTINE_F32)));
           SVN_ERR(svn_sqlite__step_done(stmt));
           SVN_ERR(svn_sqlite__get_statement(&stmt, sdb, STMT_NODES_SET_FILE));
           SVN_ERR(svn_sqlite__bindf(stmt, "s", actual->local_relpath));


Reply via email to