[libc++] Make sure the cin/wcin tests run on remote hosts
authorLouis Dionne <ldionne@apple.com>
Wed, 6 May 2020 14:42:02 +0000 (10:42 -0400)
committerLouis Dionne <ldionne@apple.com>
Wed, 6 May 2020 15:33:13 +0000 (11:33 -0400)
commit89bb9f8d78de4b85c2b889d75027783097a15b89
tree6460519628e6dc38df2e7e6b9447d148221b63f7
parentd98b9a41578f93685b1df16aa37ded893e74cf18
[libc++] Make sure the cin/wcin tests run on remote hosts

When running on remote hosts, we need the whole `echo 123 | %t.exe` command
to run on the remote host. Thus, we need to escape the pipe to make sure
the command is treated as `{ echo 123 | %t.exe } > %t.out` instead of
`{ echo 123 } | %t.exe > %t.out`m where only `echo 123` is run on the
remote host.
libcxx/test/libcxx/selftest/newformat/shell-escape-pipes.sh.cpp [new file with mode: 0644]
libcxx/test/std/input.output/iostream.objects/narrow.stream.objects/cin.sh.cpp
libcxx/test/std/input.output/iostream.objects/wide.stream.objects/wcin.sh.cpp