Page MenuHomeFreeBSD

tests/netgraph: Attribute errors to the caller
ClosedPublic

Authored by donner on Jun 7 2021, 2:03 PM.
Tags
None
Referenced Files
F84697806: D30671.id.diff
Mon, May 27, 8:14 AM
F84697289: D30671.diff
Mon, May 27, 8:02 AM
Unknown Object (File)
Tue, May 14, 2:54 AM
Unknown Object (File)
Mon, May 13, 10:50 AM
Unknown Object (File)
Mon, May 13, 10:50 AM
Unknown Object (File)
Mon, May 13, 8:42 AM
Unknown Object (File)
Mon, May 13, 8:27 AM
Unknown Object (File)
Feb 11 2024, 8:43 PM

Details

Summary

Errors raised in the common util functions should raise the location
of their caller to be useful and include the errno description.

Depends on D30629

Test Plan

Before

failed: .../util.c:151: -1 != NgSendData(ds, hook, data, len) not met

After

failed: .../basic.c:55: -1 != NgSendData(ds, hook, data, len) not met (No route to host)

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

donner requested review of this revision.Jun 7 2021, 2:03 PM
This revision is now accepted and ready to land.Jun 8 2021, 4:00 PM