]> granicus.if.org Git - zfs/commit
Splat vnode tests must return negative error codes.
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 10 Dec 2009 23:06:07 +0000 (15:06 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 10 Dec 2009 23:06:07 +0000 (15:06 -0800)
commitf60a5f5221c594372d96767d9859a334ed0a80a6
tree36a5828d7f6264c1c967c7dcd0edda1b38b7157f
parentd04c8a563c09d6449d5663aa2b57840653defae5
Splat vnode tests must return negative error codes.

I must have been in a hurry when I wrote the vnode regression tests
because the error code handling is not correct.  The Solaris vnode
API returns positive errno's, these need to be converted to negative
errno's for Linux before being passed back to user space.  Otherwise
the test hardness with report the failure but errno will not be set
with the correct error code.

Additionally tests 3, 4, 6, and 7 may fail in the test file already
exists.  To avoid false positives a user mode helper has added to
remove the test files in /tmp/ before running the actual test.
module/splat/splat-vnode.c