diff options
-rw-r--r-- | selftest/knownfail.d/samba3.blackbox.shadow_copy2 | 4 | ||||
-rwxr-xr-x | source3/script/tests/test_shadow_copy.sh | 12 |
2 files changed, 16 insertions, 0 deletions
diff --git a/selftest/knownfail.d/samba3.blackbox.shadow_copy2 b/selftest/knownfail.d/samba3.blackbox.shadow_copy2 new file mode 100644 index 00000000000..f869dc899ab --- /dev/null +++ b/selftest/knownfail.d/samba3.blackbox.shadow_copy2 @@ -0,0 +1,4 @@ +^samba3.blackbox.shadow_copy2.NT1.fetch a previous version of a regular file via non-canonical parent path\(fileserver_smb1_done\)$ +^samba3.blackbox.shadow_copy2.SMB3.fetch a previous version of a regular file via non-canonical parent path\(fileserver\)$ +^samba3.blackbox.shadow_copy2.NT1.fetch a previous version of a regular file via non-canonical path\(fileserver_smb1_done\)$ +^samba3.blackbox.shadow_copy2.SMB3.fetch a previous version of a regular file via non-canonical path\(fileserver\)$ diff --git a/source3/script/tests/test_shadow_copy.sh b/source3/script/tests/test_shadow_copy.sh index eba873f6525..fe4bcb8720e 100755 --- a/source3/script/tests/test_shadow_copy.sh +++ b/source3/script/tests/test_shadow_copy.sh @@ -333,6 +333,18 @@ test_shadow_copy_everywhere() test_fetch_snap_file $share "bar/baz" 6 || \ failed=`expr $failed + 1` + testit "fetch a previous version of a regular file via non-canonical parent path" \ + test_fetch_snap_file $share "BAR/baz" 6 || \ + failed=`expr $failed + 1` + + testit "fetch a previous version of a regular file via non-canonical basepath" \ + test_fetch_snap_file $share "bar/BAZ" 6 || \ + failed=`expr $failed + 1` + + testit "fetch a previous version of a regular file via non-canonical path" \ + test_fetch_snap_file $share "BAR/BAZ" 6 || \ + failed=`expr $failed + 1` + testit_expect_failure "fetch a (non-existent) previous version of a symlink" \ test_fetch_snap_file $share "bar/lfoo" 6 || \ failed=`expr $failed + 1` |