]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test_libcephfs: fix, add symlink loop tests
authorSage Weil <sage@inktank.com>
Mon, 12 Nov 2012 18:07:49 +0000 (10:07 -0800)
committerSage Weil <sage@inktank.com>
Mon, 12 Nov 2012 18:07:49 +0000 (10:07 -0800)
commit6dd79252547953694346d01fcc58e836b33b847d
treef7684dd960a875942b5dfbf28c4874b7c23cafe7
parent6c0be020c00b2989dffaf7a540b64ab642cf9df6
test_libcephfs: fix, add symlink loop tests

The first test did

 /a/b/file
 /a/b/sym -> /a/b

and opened /a/b/sym/file, which is valid.  Change it to

 /a/b/file
 /a/b/sym -> /a/b/sym

which is not.

Add another test that does

 /a -> /b
 /b -> /c
 /c -> /a

Signed-off-by: Sage Weil <sage@inktank.com>
src/test/libcephfs/test.cc