Page MenuHomeFreeBSD

sound tests: Fix 32bit calculation detection in pcm_read_write
ClosedPublic

Authored by dev_submerge.ch on Thu, Jan 23, 3:43 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Feb 1, 2:16 AM
Unknown Object (File)
Wed, Jan 29, 11:10 AM
Unknown Object (File)
Tue, Jan 28, 2:41 PM
Unknown Object (File)
Tue, Jan 28, 12:10 PM
Unknown Object (File)
Tue, Jan 28, 10:14 AM
Unknown Object (File)
Tue, Jan 28, 9:43 AM
Unknown Object (File)
Mon, Jan 27, 9:35 PM
Unknown Object (File)
Mon, Jan 27, 11:36 AM
Subscribers

Details

Summary

Fix a mistake in the pcm_read_write test that would result in not
properly detecting 32bit calculation on 32bit architectures like i386.
As a consequence, the wrong values would be checked, thus failing the
test.

MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 61911
Build 58795: arc lint + arc unit

Event Timeline

To the best of my knowledge, this should fix the test on i386. I haven't spotted any other test failures yet on CI, but that's not conclusive - some architectures seem to have build failures and won't run the tests.

LGTM. I just saw that https://ci.freebsd.org/job/FreeBSD-main-i386-test/lastUnstableBuild/testReport/junit/sys.sound/pcm_read_write/pcm_read/ reported this error, as a result of the 32 -> 24 bit conversion not happening.

EDIT: Seems like you linked to this as well yesterday. :-)

This revision is now accepted and ready to land.Thu, Jan 23, 12:30 PM