Mail Archives: djgpp-workers/2000/07/27/02:05:59
On Wed, 26 Jul 2000, Laurynas Biveinis wrote:
> Also I am thinking about testsuite for both chown and lchown,
> how about following:
Thanks!
Several comments:
- You need to set errno value to zero before calling a library
function, if you want to test errno afterwards. Otherwise, the
value of errno might be from the wrong call.
- It's usually best to test a file-related function on a variety of
different file types: an ordinary file, a directory, a root
directory (it's not a file on FAT filesystems), a character
device, and a volume label. Whether this is justified for a
trivial function such as `lchown', is up to you ;-).
> Any suggestions for its implementation?
You mean, for the test program? Just put it in an appropriate
directory under `tests/', and add a line to the makefile in that
directory.
> +This function does nothing under MS-DOS
There should be a period at the end of this sentence.
- Raw text -