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

Cleaning up XFails: locks-test.exe 9 and 10

From: Paul Burba <ptburba_at_gmail.com>
Date: Mon, 7 Feb 2011 15:16:46 -0500

Six years ago we set these two lock tests to XFail
(http://svn.apache.org/viewvc?view=revision&revision=853631):

C:\SVN\src-trunk>Debug\subversion\tests\libsvn_fs\locks-test.exe
--list --mode-filter xfail
Test # Mode Test Description
------ ----- ----------------
   9 XFAIL able to reserve a name (lock non-existent path)
  10 XFAIL directory locks (kinda)

These tests were expected to fail at the time because they depended on
the ability to lock non-existent paths with svn_fs_lock():

locks-test 9:

  /* DAV clients sometimes LOCK non-existent paths, as a way of
     reserving names. Check that this technique works. */
  static svn_error_t *
  lock_name_reservation(const svn_test_opts_t *opts,
                        apr_pool_t *pool)

locks-test 10:

  /* Test that we can set and get locks in and under a directory. We'll
     use non-existent FS paths for this test, though, as the FS API
     currently disallows directory locking. */
  static svn_error_t *
  directory_locks_kinda(const svn_test_opts_t *opts,
                        apr_pool_t *pool)

Are these two tests legitimate anymore?

Do we ever expect svn_fs_lock() to be able to lock non-existent paths?

Do "DAV clients sometimes LOCK non-existent paths, as a way of
reserving names"? I'm not sure exactly what that means, does anyone
have an inkling?

Paul
Received on 2011-02-07 21:17:24 CET

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.