summaryrefslogtreecommitdiffstats
path: root/lib/libnv/tests/nv_tests.cc
Commit message (Collapse)AuthorAgeFilesLines
* Add test case for unpack with diffrent flags.oshogbo2015-05-021-0/+35
| | | | Approved by: pjd (mentor)
* Approved, oprócz użycie RESTORE_ERRNO() do ustawiania errno.oshogbo2015-05-021-3/+3
| | | | | | | | | | | | | | | | | Change the nvlist_recv() function to take additional argument that specifies flags expected on the received nvlist. Receiving a nvlist with different set of flags than the ones we expect might lead to undefined behaviour, which might be potentially dangerous. Update consumers of this and related functions and update the tests. Approved by: pjd (mentor) Update man page for nvlist_unpack, nvlist_recv, nvlist_xfer, cap_recv_nvlist and cap_xfer_nvlist. Reviewed by: AllanJude Approved by: pjd (mentor)
* Remove the use of nvlist_.*[fv] functions from tests.oshogbo2015-04-291-24/+10
| | | | Approved by: pjd (mentor)
* Fix lib/libnv tests compilation with -std=c++11, by adding appropriatedim2015-03-081-10/+10
| | | | | | | casts for NULL to invocations of the ATF_REQUIER_EQ() macro. Reviewed by: rstone, jmmv Differential Revision: https://reviews.freebsd.org/D2027
* Fix build of nv_tests.ccrstone2015-03-011-1776/+0
| | | | | | | | | nv_tests.cc managed to get two copies of several functions due to me applying a patch in an unclean working tree. My kingdom for an "svn clean" command. MFC after: 1 month X-MFC-With: r279424
* Prevent creation of an invalid nvlistrstone2015-03-011-0/+33
| | | | | | | | | | | If an nvlist is set as a child of another nvlist with nvlist_move_nvlist then fail the operation and set the parent nvlist to the error state. Differential Revision: https://reviews.freebsd.org/D1880 Reviewers: jfv MFC after: 1 month Sponsored by: Sandvine Inc
* Add function to force an nvlist into the error staterstone2015-03-011-0/+36
| | | | | | | | | | | Add an nvlist_set_error() function that can be used to force an nvlist into the error state. This is useful both for writing tests and for writing APIs that use nvlists internally. Differential Revision: https://reviews.freebsd.org/D1878 Reviewed by: pjd, jfv MFC After: 1 month Sponsored by: Sandvine Inc.
* Add tests for nvlist_free* functionsrstone2015-03-011-0/+206
| | | | | | | Differential Revision: https://reviews.freebsd.org/D1874 Reviewed by: jfv, pjd MFC after: 1 month Sponsored by: Sandvine Inc.
* Add tests for nvlist_take_*rstone2015-03-011-0/+292
| | | | | | | Differential Revision: https://reviews.freebsd.org/D1873 Reviewed by: jfv, pjd MFC after: 1 month Sponsored by: Sandvine Inc.
* Add test cases for nvlist_move_*rstone2015-03-011-0/+82
| | | | | | | Differential Revision: https://reviews.freebsd.org/D1872 Reviewed by: jfv, pjd MFC after: 1 month Sponsored by: Sandvine Inc.
* Add tests for nvlist_pack/unpackrstone2015-03-011-0/+185
| | | | | | | Differential Revision: https://reviews.freebsd.org/D1871 Reviewed by: jfv, pjd MFC after: 1 month Sponsored by: Sandvine Inc.
* Add tests for nvlist_clonerstone2015-03-011-0/+120
| | | | | | | Differential Revision: https://reviews.freebsd.org/D1870 Reviewed by: pjd, jfv MFC after: 1 month Sponsored by: Sandvine Inc
* Tests of basic nvlist add functionsrstone2015-03-011-0/+2076
Differential Revision: https://reviews.freebsd.org/D1869 Reviewed by: jfv, pjd MFC after: 1 month Sponsored by: Sandvine Inc.
OpenPOWER on IntegriCloud