Page MenuHomeFreeBSD

Add a testcase for aio_suspend
ClosedPublic

Authored by asomers on Jan 5 2017, 4:50 AM.
Tags
None
Referenced Files
F87688536: D9045.id23612.diff
Sat, Jul 6, 8:06 PM
Unknown Object (File)
Sun, Jun 23, 7:20 PM
Unknown Object (File)
May 2 2024, 10:03 PM
Unknown Object (File)
May 2 2024, 10:03 PM
Unknown Object (File)
May 2 2024, 10:03 PM
Unknown Object (File)
May 2 2024, 9:11 PM
Unknown Object (File)
May 2 2024, 8:35 PM
Unknown Object (File)
Apr 2 2024, 7:42 PM
Subscribers

Details

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

asomers retitled this revision from to Add a testcase for aio_suspend.
asomers updated this object.
asomers edited the test plan for this revision. (Show Details)
asomers added a reviewer: jhb.

This looks fine overall. I think it wouldn't be bad if we had an aio_suspend test of all the various file types, not just for vnodes.

tests/sys/aio/aio_test.c
1077 ↗(On Diff #23612)

These are roughly in order that the functions are defined, so I think this should be moved up?

asomers edited edge metadata.

Substantially update review:

  • add tests for polled completion notification
  • test the full matrix of file descriptor types and completion notification mechanisms.
  • Don't bother with mkstemp, because ATF runs every test in its own temp dir.
  • Fix some typos
  • Remove extraneous ATF_REQUIRE_KERNEL_MODULE calls
jhb edited edge metadata.
jhb added inline comments.
tests/sys/aio/aio_test.c
77 ↗(On Diff #23753)

I would put a blank line here (I know it was missing in the original code)

221 ↗(On Diff #23753)

You might want to ATF_REQUIRE that the returned aiocb from aio_waitcomplete() matches the passed in aiocb.

384 ↗(On Diff #23753)

Only caveat about removing mkstemp() is that I often run tests standalone. In particular, kyua has very poor integration with debuggers, so the only way to single step a test to debug a failure is to run it outside of kyua. :-/

This revision is now accepted and ready to land.Jan 27 2017, 7:12 PM
asomers added inline comments.
tests/sys/aio/aio_test.c
221 ↗(On Diff #23753)

good idea.

384 ↗(On Diff #23753)

For those cases, I usually cd to /tmp, then invoke the test by its absolute pathname. That way, temporary files get created in /tmp.

This revision was automatically updated to reflect the committed changes.