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

return error code when benchmark fails #3480

Merged
merged 3 commits into from
Feb 7, 2023
Merged

return error code when benchmark fails #3480

merged 3 commits into from
Feb 7, 2023

Conversation

Cyan4973
Copy link
Contributor

@Cyan4973 Cyan4973 commented Feb 7, 2023

such scenario can happen, for example,
when trying a decompression-only benchmark on invalid data.
Other possibilities include an allocation error in an intermediate step.

Up to now, the benchmark would return immediately, and exit the program, but still return 0.
When operation outcome is checked by command line, this is confusing, as the program appears successful.

Now it returns !0, which can be interpreted as an error by command line.

Required to validate #3476 .

Potential follow up in #3481 .

such scenario can happen, for example,
when trying a decompression-only benchmark on invalid data.
Other possibilities include an allocation error in an intermediate step.

So far, the benchmark would return immediately, but still return 0.
On command line, this would be confusing, as the program appears successful (though it does not display any successful message).

Now it returns !0, which can be interpreted as an error by command line.
@Cyan4973 Cyan4973 merged commit df21ace into dev Feb 7, 2023
@Cyan4973 Cyan4973 deleted the benchFail branch February 10, 2023 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants