Page MenuHomeFreeBSD

mixer: the cleanup function is not called and not needed
ClosedPublic

Authored by pizzamig on Feb 4 2020, 10:07 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, May 7, 4:27 AM
Unknown Object (File)
Tue, May 7, 4:25 AM
Unknown Object (File)
Mar 9 2024, 3:01 PM
Unknown Object (File)
Feb 23 2024, 10:57 AM
Unknown Object (File)
Dec 23 2023, 12:13 AM
Unknown Object (File)
Dec 3 2023, 1:32 PM
Unknown Object (File)
Dec 3 2023, 1:32 PM
Unknown Object (File)
Dec 3 2023, 1:32 PM
Subscribers

Details

Summary

In the mixer test called set_empty_value, the cleanup function is not used
because no cleanup is needed. However the function is defined.
This patch will just remove it

Diff Detail

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

Event Timeline

Yes, it should not be there.

This revision is now accepted and ready to land.Feb 4 2020, 10:43 AM

Hmm. I wonder if it's not better the actually add the cleanup call to the atf_test_case definition.
It's not needed if the test passes, but perhaps it makes sense to try to restore the volume if the test should fail.

Also, if we don't have the cleanup function, do we still need save_mixer_vol?

Well, if mixer vol "" is changing the volume as a result of a bug, than the restore_mixer_vol is the right thing to do.
0mp: what do you think?

Well, if mixer vol "" is changing the volume as a result of a bug, than the restore_mixer_vol is the right thing to do.
0mp: what do you think?

@kp is right, this would be better.

  • Restore the clenup function, but make use of it
This revision now requires review to proceed.Feb 5 2020, 9:32 AM
This revision is now accepted and ready to land.Feb 5 2020, 10:08 AM
This revision was automatically updated to reflect the committed changes.