freebsd-dev/lib/libkvm
Enji Cooper 10f81a9b3b 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.

Reviewed by:	markj
MFC after:	2 months
Sponsored by:	Dell EMC Isilon
Differential Revision:	D10024
2017-03-28 17:37:49 +00:00
..
tests lib/libkvm: start adding basic tests for kvm(3) 2017-03-28 17:37:49 +00:00
kvm_aarch64.h
kvm_amd64.c libkvm: fix warning issues post-r291406 2017-03-22 02:42:00 +00:00
kvm_amd64.h
kvm_arm.c libkvm: fix warning issues post-r291406 2017-03-22 02:42:00 +00:00
kvm_arm.h
kvm_cptime.c
kvm_getcptime.3
kvm_geterr.3 kvm_geterr: handle kd == NULL in a deterministic/graceful manner 2017-03-21 19:02:17 +00:00
kvm_getloadavg.3 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
kvm_getloadavg.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
kvm_getpcpu.3 Tweak r315363 slightly 2017-03-16 03:24:15 +00:00
kvm_getprocs.3 Remove a commented out line before kvm_getprocs(3) 2017-03-19 23:04:58 +00:00
kvm_getswapinfo.3 libkvm - extend a bit the swap statistics field. 2017-01-02 15:12:11 +00:00
kvm_getswapinfo.c libkvm - extend a bit the swap statistics field. 2017-01-02 15:12:11 +00:00
kvm_i386.c libkvm: fix warning issues post-r291406 2017-03-22 02:42:00 +00:00
kvm_i386.h
kvm_minidump_aarch64.c libkvm: fix warning issues post-r291406 2017-03-22 02:42:00 +00:00
kvm_minidump_amd64.c libkvm: fix warning issues post-r291406 2017-03-22 02:42:00 +00:00
kvm_minidump_arm.c libkvm: fix warning issues post-r291406 2017-03-22 02:42:00 +00:00
kvm_minidump_i386.c libkvm: fix warning issues post-r291406 2017-03-22 02:42:00 +00:00
kvm_minidump_mips.c libkvm: fix warning issues post-r291406 2017-03-22 02:42:00 +00:00
kvm_mips.h
kvm_native.3 Capitalize .Dt macro argument 2017-03-16 03:18:06 +00:00
kvm_nlist.3 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
kvm_open.3 Handle kd == NULL gracefully with kvm_close(3) 2017-03-20 18:28:22 +00:00
kvm_pcpu.c
kvm_powerpc64.c libkvm: fix warning issues post-r291406 2017-03-22 02:42:00 +00:00
kvm_powerpc.c libkvm: fix warning issues post-r291406 2017-03-22 02:42:00 +00:00
kvm_private.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
kvm_private.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
kvm_proc.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
kvm_read.3 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
kvm_sparc64.c libkvm: fix warning issues post-r291406 2017-03-22 02:42:00 +00:00
kvm_sparc64.h
kvm_vnet.c
kvm.3 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
kvm.c kvm_write: fix -Wcast-qual warning in pointer arithmetic argument 2017-03-21 20:48:36 +00:00
kvm.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
Makefile lib/libkvm: start adding basic tests for kvm(3) 2017-03-28 17:37:49 +00:00
Makefile.depend