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

[porting to develop] RUMM-3266 fix: use arch conditionals to assert arch specific signal #1276

Merged

Conversation

ganeshnj
Copy link
Contributor

@ganeshnj ganeshnj commented May 4, 2023

Porting #1273 to develop

What and why?

On x86 a fatalError() results on a SIGILL signal but on an ARM machine it results in a SIGTRAP.

Hence, the test case fail on the ARM machine. In order to update the CI to ARM, this needs to be fixed.

How?

Use preprocessor macros to check the architecture and then use the appropriate signal.

Review checklist

  • Feature or bugfix MUST have appropriate tests (unit, integration)
  • Make sure each commit and the PR mention the Issue number or JIRA reference
  • Add CHANGELOG entry for user facing changes

Custom CI job configuration (optional)

  • Run unit tests
  • Run integration tests
  • Run smoke tests

### What and why?

On x86 a `fatalError()` results on a SIGILL signal but on an ARM machine it results in a `SIGTRAP`.

Hence, the test case fail on the ARM machine. In order to update the CI to ARM, this needs to be fixed.

### How?

Use preprocessor macros to check the architecture and then use the appropriate signal.
@ganeshnj ganeshnj requested a review from a team as a code owner May 4, 2023 11:30
@ganeshnj ganeshnj changed the title RUMM-3266 fix: use arch conditionals to assert arch specific signal [porting to develop] RUMM-3266 fix: use arch conditionals to assert arch specific signal May 4, 2023
@datadog-datadog-prod-us1
Copy link

datadog-datadog-prod-us1 bot commented May 4, 2023

Datadog Report

Branch report: ganeshnj/fix/RUM-3266-arm-fatalerror-test-on-develop
Commit report: 1830860

dd-sdk-ios: 0 Failed, 0 New Flaky, 2158 Passed, 0 Skipped, 22m 12.82s Wall Time

@ganeshnj ganeshnj merged commit 64dbdf0 into develop May 4, 2023
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