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

test: Demonstrate leaking of display for cram test #7003

Conversation

Alizter
Copy link
Collaborator

@Alizter Alizter commented Feb 5, 2023

Here is the internal display bug from #4066.

cc @snowleopard

@Alizter Alizter force-pushed the ps/rr/test__demonstrate_leaking_of_display_for_cram_test branch from 03828f6 to 78a248a Compare February 5, 2023 17:43
@Alizter Alizter force-pushed the ps/rr/test__demonstrate_leaking_of_display_for_cram_test branch from 78a248a to 1e6a6c3 Compare February 5, 2023 17:47

$ dune build --root=. --diff-command="exit 123" --display=short @runtest 2>&1 >/dev/null | head -n2
File "mytest.t", line 1, characters 0-0:
sh (internal) (exit 1)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is this possible? The command says exit 123 but the resultant exit code is 1?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It appears that on the CI, Ubuntu also exits 123. In Nix and Mac it seems to be 1....

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now I will set it to 1 as this doesn't appear to be our problem.

<!-- ps-id: bca52dae-c074-4edc-8022-073c2c7b551d -->

Signed-off-by: Ali Caglayan <alizter@gmail.com>
@Alizter Alizter force-pushed the ps/rr/test__demonstrate_leaking_of_display_for_cram_test branch from 1e6a6c3 to 0e6d333 Compare February 5, 2023 19:01
@rgrinberg rgrinberg merged commit 165f735 into ocaml:main Feb 5, 2023
@Alizter Alizter deleted the ps/rr/test__demonstrate_leaking_of_display_for_cram_test branch February 5, 2023 20:15
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.

None yet

2 participants