You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ko...@apache.org on 2022/11/23 09:02:27 UTC

svn commit: r1905470 - /subversion/trunk/subversion/tests/svn_test_main.c

Author: kotkov
Date: Wed Nov 23 09:02:27 2022
New Revision: 1905470

URL: http://svn.apache.org/viewvc?rev=1905470&view=rev
Log:
In the C test suite, don't hardcode the default working copy format version
to the minimum supported version and instead let the client layer use its
current default (which happens to be the same).

This way, the defaults won't be scattered across different parts of the code.
Also, the new behavior should be symmetrical to how the Python tests behave
if --wc-format-version is not specified.

* subversion/tests/svn_test_main.c
  (svn_test_main): Default-initialize `opts.wc_format_version` to null.

Modified:
    subversion/trunk/subversion/tests/svn_test_main.c

Modified: subversion/trunk/subversion/tests/svn_test_main.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/svn_test_main.c?rev=1905470&r1=1905469&r2=1905470&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/svn_test_main.c (original)
+++ subversion/trunk/subversion/tests/svn_test_main.c Wed Nov 23 09:02:27 2022
@@ -808,7 +808,6 @@ svn_test_main(int argc, const char *argv
   svn_test_opts_t opts = { NULL };
 
   opts.fs_type = DEFAULT_FS_TYPE;
-  opts.wc_format_version = svn_wc__min_supported_format_version();
 
   /* Initialize APR (Apache pools) */
   if (apr_initialize() != APR_SUCCESS)