Page MenuHomeFreeBSD

Add function to force an nvlist into the error state

Authored by rstone on Feb 17 2015, 5:44 PM.
Referenced Files
Unknown Object (File)
Fri, Mar 17, 6:25 AM
Unknown Object (File)
Sat, Mar 4, 12:02 AM
Unknown Object (File)
Thu, Mar 2, 10:17 PM
Unknown Object (File)
Feb 13 2023, 9:11 PM
Unknown Object (File)
Feb 4 2023, 8:03 PM
Unknown Object (File)
Jan 13 2023, 7:39 PM
Unknown Object (File)
Jan 8 2023, 2:23 PM
Unknown Object (File)
Jan 7 2023, 8:34 AM



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.

Diff Detail

rS FreeBSD src repository - subversion
No Lint Coverage
No Test Coverage

Event Timeline

rstone retitled this revision from to Add function to force an nvlist into the error state.
rstone edited the test plan for this revision. (Show Details)
rstone added a reviewer: jfv.
rstone updated this object.
rstone added subscribers: pjd, Unknown Object (MLST).
jfv edited edge metadata.
This revision is now accepted and ready to land.Feb 18 2015, 10:25 PM

Other that the minor nit above, it looks good.


I'd assert that error is != 0.