Skip the longdir test if the long directory can't even be created, such as
authorDavid Dykstra <dwd@samba.org>
Fri, 10 Jan 2003 15:06:10 +0000 (15:06 +0000)
committerDavid Dykstra <dwd@samba.org>
Fri, 10 Jan 2003 15:06:10 +0000 (15:06 +0000)
on cygwin (maybe only on certain filesystems?).

testsuite/longdir.test
testsuite/rsync.fns

index 05fae32..89a2f7a 100644 (file)
@@ -13,7 +13,7 @@ hands_setup
 
 LONGDIR=${FROM}/This-is-a-directory-with-a-stupidly-long-name-created-in-an-attempt-to-provoke-an-error-found-in-2.0.11-that-should-hopefully-never-appear-again-if-this-test-does-its-job/This-is-a-directory-with-a-stupidly-long-name-created-in-an-attempt-to-provoke-an-error-found-in-2.0.11-that-should-hopefully-never-appear-again-if-this-test-does-its-job/This-is-a-directory-with-a-stupidly-long-name-created-in-an-attempt-to-provoke-an-error-found-in-2.0.11-that-should-hopefully-never-appear-again-if-this-test-does-its-job
 
-makepath ${LONGDIR}
+makepath ${LONGDIR} || test_skipped "unable to create long directory"
 date > ${LONGDIR}/1
 ls -la / > ${LONGDIR}/2
 checkit "$RSYNC --delete -avH ${FROM}/ ${TO}" ${FROM}/ ${TO}
index c5532b5..3ac95f5 100644 (file)
@@ -278,4 +278,4 @@ is_a_link() {
 # best thing is probably to explicitly chmod those directories after
 # creation.
  
-umask 022
\ No newline at end of file
+umask 022