diff options
author | ngie <ngie@FreeBSD.org> | 2017-05-27 23:04:40 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2017-05-27 23:04:40 +0000 |
commit | fafbbee6b4f6a1ddeb843324a4d328604317a2fb (patch) | |
tree | bbbb7154d603b447145e2cdf97d0da10ac1ffbfd /etc/mtree | |
parent | 79b0a71fc509ae56eb96b54abc55457d8b0f918e (diff) | |
download | FreeBSD-src-fafbbee6b4f6a1ddeb843324a4d328604317a2fb.zip FreeBSD-src-fafbbee6b4f6a1ddeb843324a4d328604317a2fb.tar.gz |
MFC r316099:
lib/libkvm: start adding basic tests for kvm(3)
- kvm_close: add a testcase to verify support for errno = EINVAL / -1
(see D10065) when kd == NULL is provided to the libcall.
- kvm_geterr:
-- Add a negative testcase for kd == NULL returning "" (see D10022).
-- Add two positive testcases:
--- test the error case using kvm_write on a O_RDONLY descriptor.
--- test the "no error" case using kvm_read(3) and kvm_nlist(3) as
helper routines and by injecting a bogus error message via
_kvm_err (an internal API) _kvm_err was used as there isn't a
formalized way to clear the error output, and because
kvm_nlist always returns ENOENT with the NULL terminator today.
- kvm_open, kvm_open2:
-- Add some basic negative tests for kvm_open(3) and kvm_open2(3).
Testing positive cases with a specific
`corefile`/`execfile`/`resolver` requires more work and would require
user intervention today in order to reliably test this out.
Diffstat (limited to 'etc/mtree')
-rw-r--r-- | etc/mtree/BSD.tests.dist | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/mtree/BSD.tests.dist b/etc/mtree/BSD.tests.dist index 7e7bf61..f735b1a 100644 --- a/etc/mtree/BSD.tests.dist +++ b/etc/mtree/BSD.tests.dist @@ -316,6 +316,8 @@ .. libdevdctl .. + libkvm + .. libmp .. libnv |