tests: tighten link, rmdir, and remove tests
authorEric Blake <ebb9@byu.net>
Tue, 29 Sep 2009 17:40:49 +0000 (11:40 -0600)
committerEric Blake <ebb9@byu.net>
Thu, 1 Oct 2009 11:34:12 +0000 (05:34 -0600)
commit0f4fd7f4782907e0a308a077118c6578fff4e49f
treeb513b039b277282f8adc2015e3180792baf99745
parent1c233a6b61e3aca04d0edd02ad31a276d35bfcf4
tests: tighten link, rmdir, and remove tests

Catch cygwin bug where rmdir("a/./") failed but rmdir("a/.//")
succeeded.  Be kinder if a Solaris root user runs the test.

* tests/test-link.h (includes): No need to use <config.h> here.
Clean up if directory hard link was created, otherwise test for
trailing '.'.
* tests/test-linkat.c (main): Simplify.
* tests/test-remove.c (main): Enhance test for trailing '.'.
* tests/test-rmdir.h (test_rmdir_func): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
tests/test-link.h
tests/test-linkat.c
tests/test-remove.c
tests/test-rmdir.h