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
F167939952: D58060.id182456.diff
Tue, Aug 25, 1:01 PM
F167865032: D58060.diff
Tue, Aug 25, 2:30 AM
Unknown Object (File)
Thu, Aug 20, 1:10 PM
Unknown Object (File)
Wed, Aug 19, 1:30 PM
Unknown Object (File)
Tue, Aug 18, 7:20 AM
Unknown Object (File)
Sat, Aug 15, 4:02 PM
Unknown Object (File)
Fri, Aug 14, 2:28 AM
Unknown Object (File)
Tue, Aug 11, 11:21 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