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
F108383501: D48617.diff
Fri, Jan 24, 8:34 AM
F108321757: D48617.diff
Thu, Jan 23, 8:43 PM
Unknown Object (File)
Thu, Jan 23, 4:17 AM
Unknown Object (File)
Thu, Jan 23, 4:06 AM
Unknown Object (File)
Thu, Jan 23, 4:02 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 Not Applicable
Unit
Tests Not Applicable

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