Page MenuHomeFreeBSD

exterr(9): add a few tests of new message formats
AcceptedPublic

Authored by brooks on Mon, Jul 6, 4:06 PM.
Tags
None
Referenced Files
F164912272: D58060.id182597.diff
Tue, Aug 4, 6:44 PM
F164912265: D58060.id182456.diff
Tue, Aug 4, 6:44 PM
Unknown Object (File)
Tue, Aug 4, 12:19 AM
Unknown Object (File)
Mon, Aug 3, 5:24 AM
Unknown Object (File)
Mon, Aug 3, 5:24 AM
Unknown Object (File)
Sun, Aug 2, 9:28 PM
Unknown Object (File)
Sun, Aug 2, 6:04 AM
Unknown Object (File)
Sat, Aug 1, 6:41 AM
Subscribers

Details

Reviewers
kib
mckusick
Group Reviewers
cheri
Summary

This is enough to show that the idea works (and to exercise
uexterr_set()), but isn't complete by any means.

Effort: CHERI upstreaming
Sponsored by: Innovate UK

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 75082
Build 71965: arc lint + arc unit

Event Timeline

brooks requested review of this revision.Mon, Jul 6, 4:06 PM

Update for UEXTERROR returning void.

kib added inline comments.
tests/sys/kern/exterr_test.c
96

I am curious, what is the point of printing something out from ATF tests? Is it usable in some way?

This revision is now accepted and ready to land.Wed, Jul 22, 9:46 PM
brooks added inline comments.
tests/sys/kern/exterr_test.c
96

When the tests fail the output ends up in the verbose reports and I've found it fairly useful when debugging these changes, especially in qemu VM where I don't have a compiler installed and don't want to build things by hand.

That being said, the simple strcmp below should be a ATF_CHECK_STREQ which has the same effect.

brooks marked an inline comment as done.

Improve test description

This revision now requires review to proceed.Fri, Jul 24, 10:37 AM
This revision is now accepted and ready to land.Fri, Jul 24, 8:24 PM