Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: test for arm64 architecture properly in MP3DecoderTests #3124

Merged

Conversation

rsekman
Copy link
Contributor

@rsekman rsekman commented Sep 12, 2024

on arm64/aarch64 libmpg123 generates bad data leading to the test MP3DecoderTests.test_DecodeMP3As2PiecesMPG123_SameAs1Piece failing. this test was excluded by testing for the TARGET_CPU_ARM64 macro. but this is an Xcode macro defined in TargetConditionals.h. thus the test would not be excluded when compiling on a device such as the Raspberry Pi 4 or 5. the portable way to test for arm64 architecture with clang is to check for __aarch64__: https://stackoverflow.com/a/41666292

@Oleksiy-Yakovenko
Copy link
Member

Accidental commit of dspconfig file?

@rsekman rsekman force-pushed the fix/arm64_mp3_decoder_tests branch from 583d111 to 1dda8cf Compare September 14, 2024 09:41
@rsekman
Copy link
Contributor Author

rsekman commented Sep 14, 2024

Yes 🤦‍♂️, fixed; thanks for pointing it out.

@Oleksiy-Yakovenko
Copy link
Member

@rsekman can you please rebase on latest master and rerun CI jobs?

on arm64/aarch64 libmpg123 generates bad data leading to the test
MP3DecoderTests.test_DecodeMP3As2PiecesMPG123_SameAs1Piece failing. this
test was excluded by testing for the TARGET_CPU_ARM64 macro. but this is
an Xcode macro defined in TargetConditionals.h. thus the test would not
be excluded when compiling on a device such as the Raspberry Pi 4 or
5. the portable way to test for arm64 architecture with clang is to
   check for __aarch64__: https://stackoverflow.com/a/41666292
@rsekman rsekman force-pushed the fix/arm64_mp3_decoder_tests branch from 1dda8cf to d3cc85e Compare November 10, 2024 19:30
@Oleksiy-Yakovenko Oleksiy-Yakovenko merged commit 623a0ff into DeaDBeeF-Player:master Nov 10, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants