Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
interp: don't test cancelling a read via os.Stdin
Now that we use file deadlines directly, the test correctly reads (0, io.EOF) from stdin because it is empty. Use an open pipe, which should correctly wait for input forever. Note that this fails on GOOS=windows for me on Wine because it seems like os.Pipe files do not support deadlines there, even though the docs say that OS pipes should generally work: On most systems ordinary files do not support deadlines, but pipes do. Let's see what CI with real Windows thinks. We can then adjust GOOS=windows on Wine accordingly.
- Loading branch information