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

osx friendly tests #135

Merged
merged 1 commit into from
Jun 16, 2023
Merged

osx friendly tests #135

merged 1 commit into from
Jun 16, 2023

Conversation

mosesn
Copy link
Contributor

@mosesn mosesn commented May 20, 2023

The ManagedProcessTest relies on the executables that are commonly found on different OSes. Although many of the BSD and Linux executables are similar, they have some minor differences. For example, ls -4 returns with an exit code of 2 on OSX, not 1 like on Linux. Similarly, sleep just takes a number of seconds on OSX, unlike on Linux where it also takes a unit (eg 10s or 10ms).

This patch updates the tests to accommodate the different behavior in OSX.

The ManagedProcessTest relies on the executables that are commonly found on different
OSes.  Although many of the BSD and Linux executables are similar, they have some minor
differences.  For example, ls -4 returns with an exit code of 2 on OSX, not 1 like on Linux.
Similarly, sleep just takes a number of seconds on OSX, unlike on Linux where it also takes
a unit (eg 10s or 10ms).
@vorburger
Copy link
Owner

@mosesn I am SO SORRY this "slipped through the cracks" - I just stumbled upon this again today, and am of course very happy to merge it!

@vorburger vorburger merged commit fb4ecc1 into vorburger:main Jun 16, 2023
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