[darcs-users] test suite failures on OpenBSD

Eric Kow kowey at darcs.net
Sun Oct 12 23:13:37 UTC 2008


On Sun, Oct 12, 2008 at 16:08:06 +0200, Matthias Kilian wrote:
> $ mkdir -p /tmp/foo/bar
> $ chmod 111 /tmp/foo
> $ cd /tmp/foo/bar
> $ /bin/pwd
> pwd: getcwd: Permission denied

Hmm... so we have this if-then-else block to skip this test as needed

  # TODO: we avoid this test on Solaris because it seems we can't create
  # anything in tmp_restrictive/liberal
  touch can_touch
  if [ -e can_touch ]; then
    darcs get $DIR/tmp_remote 2> log
    not grep -i 'permission denied' log
  else
    echo "Can't do `basename $0` on this platform"
  fi
  
Would modifying the test to something like

  if pwd; then
    darcs get $DIR/tmp_remote 2> log
    not grep -i 'permission denied' log
  else
    echo "Can't do `basename $0` on this platform"
  fi

do what we want?
 
-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
Url : http://lists.osuosl.org/pipermail/darcs-users/attachments/20081013/103efa66/attachment.pgp 


More information about the darcs-users mailing list