Open brandonchinn178 opened 1 year ago
This is likely due to https://github.com/fpco/typed-process/issues/73.
@brandonchinn178, this may be operating system-specific. On Windows 11, I get (whether it is run as an executable or run as a test):
Sleeping...
test: finally.1
finally.2
For some reason (EDIT: garbled output is expected - see https://github.com/UnkindPartition/tasty#faq), the Sleeping...
gets output before the test:
- and Ctrl+C ends things silently.
Based on this part of Stack.Build.Execute.singleTest
, I think Stack itself just runs the test executable as a RIO.Process.proc
- which is built on System.Process.Typed.proc
from the typed-process
package (as identified by @sol above):
mec <- withWorkingDir (toFilePath pkgDir) $
optionalTimeout $ proc (toFilePath exePath) args $ \pc0 -> do
...
So, I do think this is an upstream issue.
General summary/comments (optional)
Copied from https://github.com/UnkindPartition/tasty/issues/354
Steps to reproduce
stack test
Expected
Should show the output
Actual
Got output
Stack version
Method of installation
Platform
MacOS M2 arm