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 bazel test -c opt ...:all #2

Merged
merged 1 commit into from
Oct 9, 2019
Merged

Fix bazel test -c opt ...:all #2

merged 1 commit into from
Oct 9, 2019

Conversation

reventlov
Copy link
Collaborator

Move all side-effectful operations outside of EMBOSS_CHECK and related macros.

Add EMBOSS_CHECK_ABORTS and EMBOSS_DCHECK_ABORTS macros, so that tests can enable/disable EXPECT_DEATH.

Move all side-effectful operations outside of EMBOSS_CHECK and related macros.

Add EMBOSS_CHECK_ABORTS and EMBOSS_DCHECK_ABORTS macros, so that tests can enable/disable EXPECT_DEATH.
@AaronWebster AaronWebster merged commit eb9a10a into master Oct 9, 2019
reventlov added a commit to reventlov/emboss that referenced this pull request May 2, 2023
reventlov added a commit that referenced this pull request Dec 5, 2024
With certain versions of GCC, `bazel test -c opt ...` failed, apparently
due to a compiler bug.

This change:

1.  Adds a workaround for the GCC bug.
2.  Enables the workaround on versions of GCC known to have the bug.
3.  Documents the bug (in comments).
4.  Enables testing with `-c opt` as part of the commit hook.

Note that the versions covered by #2 are a little wider than may be
technically necessary.  As of the time of writing, this affects all
released versions of GCC from 12.1 through 14.1, but the GCC fix has
been backported to the 12.X and 13.X branches.  It may be possible
to reduce the workaround's scope once those are released.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants