Page MenuHomeFreeBSD

tests/netgraph: Attribute errors to the caller
ClosedPublic

Authored by donner on Mon, Jun 7, 2:03 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
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

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