Skip to content

Fix process tests on OpenBSD #225

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

Merged
merged 2 commits into from
Feb 14, 2022

Conversation

blackgnezdo
Copy link
Contributor

No description provided.

pdksh (OpenBSD /bin/sh) behaves differently compared to most other
shells: https://marc.info/?l=openbsd-tech&m=164153793509651&w=2

The same subprocess behavior can be achieved by a python script.

Fixes process011 and process009 tests on OpenBSD.
I suspect this will be OK on other systems that use posix_spawn.
@snoyberg
Copy link
Collaborator

snoyberg commented Jan 9, 2022

Since these are run by GHC's test suite and not the local one, @bgamari would you mind reviewing and signing off if you're happy with this change? Feel free to merge too if you'd like, or I can.

@blackgnezdo
Copy link
Contributor Author

Ping for the next release?

@snoyberg
Copy link
Collaborator

snoyberg commented Feb 9, 2022

Sorry, I thought I'd seen @bgamari sign off on this. I need to wait on his approval before merging.

@bgamari
Copy link
Contributor

bgamari commented Feb 10, 2022

I'll try to test this in the GHC testsuite tomorrow.

@bgamari
Copy link
Contributor

bgamari commented Feb 14, 2022

Looking at this now.

@bgamari
Copy link
Contributor

bgamari commented Feb 14, 2022

Indeed the GHC testsuite passes when built against this branch.

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.

3 participants