Skip to content

Fix process tests on OpenBSD - #225

Merged
bgamari merged 2 commits into
haskell:masterfrom
blackgnezdo:fix-openbsd-pdksh-signal-behavior
Feb 14, 2022
Merged

bgamari merged 2 commits into
haskell:masterfrom
blackgnezdo:fix-openbsd-pdksh-signal-behavior

Conversation

@blackgnezdo

Copy link
Copy Markdown
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

snoyberg commented Jan 9, 2022

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
Contributor Author

Ping for the next release?

@snoyberg

snoyberg commented Feb 9, 2022

Copy link
Copy Markdown
Collaborator

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

@bgamari

bgamari commented Feb 10, 2022

Copy link
Copy Markdown
Contributor

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

@bgamari

bgamari commented Feb 14, 2022

Copy link
Copy Markdown
Contributor

Looking at this now.

@bgamari

bgamari commented Feb 14, 2022

Copy link
Copy Markdown
Contributor

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