Page MenuHomeFreeBSD

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

Authored by brooks on Jul 6 2026, 4:06 PM.
Tags
None
Referenced Files
F168813039: D58060.id.diff
Sun, Aug 30, 6:56 AM
F168811482: D58060.id182456.diff
Sun, Aug 30, 6:41 AM
F168780013: D58060.id182456.diff
Sun, Aug 30, 3:06 AM
Unknown Object (File)
Sat, Aug 29, 3:41 PM
Unknown Object (File)
Fri, Aug 28, 10:53 PM
Unknown Object (File)
Fri, Aug 28, 8:11 PM
Unknown Object (File)
Wed, Aug 26, 9:14 PM
Unknown Object (File)
Tue, Aug 25, 1:01 PM
Subscribers

Details

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 Not Applicable
Unit
Tests Not Applicable

Event Timeline

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

Update for UEXTERROR returning void.

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

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.Jul 22 2026, 9:46 PM
brooks added inline comments.
tests/sys/kern/exterr_test.c
97

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.Jul 24 2026, 10:37 AM
This revision is now accepted and ready to land.Jul 24 2026, 8:24 PM