[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Should this test pass?

From: Joe Swatosh <joe.swatosh_at_gmail.com>
Date: 2007-01-09 08:58:48 CET

Hi All,
As I've been trying to get the Ruby bindings tests to pass on windows,
I ran into a failing test. If I changed from BDB to FSFS the Ruby
version of the test passes.

I rewrote it as a C test, just to make sure that Ruby wasn't involved
at all and sure enough the test below fails, but if the fs_type is
changed to fsfs it passes.

Perhaps I've screwed up the build somehow? Screwed up somehow that
wasn't detected by the existing tests?

Thanks

--
Joe Swatosh
-----------------------------------------------------
static svn_error_t *
destroy_bdb_fs_type(const char **msg,
                    svn_boolean_t msg_only,
                    svn_test_opts_t *opts,
                    apr_pool_t *pool)
{
  svn_fs_t *fs;
  const char *fs_type = "bdb";
  const char *name = "test-bdb-destruction";
  apr_hash_t *fs_config = apr_hash_make(pool);
  apr_hash_set(fs_config, SVN_FS_CONFIG_BDB_TXN_NOSYNC,
               APR_HASH_KEY_STRING, "1");
  apr_hash_set(fs_config, SVN_FS_CONFIG_FS_TYPE,
               APR_HASH_KEY_STRING,
               fs_type);
  *msg = "create a bdb file system then destroy it";
  if (msg_only)
    return SVN_NO_ERROR;
  SVN_ERR(svn_fs_create(&fs, name, fs_config, pool));
  SVN_ERR(svn_fs_delete_fs(name, pool));
  return SVN_NO_ERROR;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jan 9 08:59:00 2007

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.