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

Don't call exit(1) if unable to initialize C++ XMP Toolkit #156

Merged
merged 2 commits into from
Jan 31, 2023

Conversation

scouten-adobe
Copy link
Member

@scouten-adobe scouten-adobe commented Jan 31, 2023

Changes in this pull request

If C++ XMP Toolkit fails, all calls to Rust XMP Toolkit APIs will fail with Error::InternalFailure, but the program will no longer self-terminate by calling exit(1). Fixes #100.

Checklist

  • This PR represents a single feature, fix, or change.
  • All applicable changes have been documented.
  • Any TO DO items (or similar) have been entered as GitHub issues and the link to that issue has been included in a comment.

@scouten-adobe scouten-adobe self-assigned this Jan 31, 2023
Running with this code disabled allowed me to confirm that the Rust toolkit fails as expected (and does not crash) in the unlikely event that the C++ Toolkit doesn't initialize.
@codecov
Copy link

codecov bot commented Jan 31, 2023

Codecov Report

Merging #156 (4ef3c66) into main (b08eb14) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #156   +/-   ##
=======================================
  Coverage   97.87%   97.87%           
=======================================
  Files           8        8           
  Lines        1504     1504           
=======================================
  Hits         1472     1472           
  Misses         32       32           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@scouten-adobe scouten-adobe merged commit 40c3356 into main Jan 31, 2023
@scouten-adobe scouten-adobe deleted the no-exit branch January 31, 2023 23:34
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.

Calls exit(1) if unable to initialize C++ XMP Toolkit
1 participant