Skip to content

test: Demonstrate leaking of display for cram test#7003

Merged
rgrinberg merged 1 commit intoocaml:mainfrom
Alizter:ps/rr/test__demonstrate_leaking_of_display_for_cram_test
Feb 5, 2023
Merged

test: Demonstrate leaking of display for cram test#7003
rgrinberg merged 1 commit intoocaml:mainfrom
Alizter:ps/rr/test__demonstrate_leaking_of_display_for_cram_test

Conversation

@Alizter
Copy link
Copy Markdown
Collaborator

@Alizter Alizter commented Feb 5, 2023

Here is the internal display bug from #4066.

cc @snowleopard

@Alizter Alizter requested a review from rgrinberg February 5, 2023 17:36
@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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

2 participants