mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 02:08:12 +03:00
519aa2048a
This commit fixes a FIXME in a test, as we have subshells now.
14 lines
507 B
Bash
14 lines
507 B
Bash
#!/bin/sh
|
|
|
|
# `head -n 1` should close stdout of the `Shell -c` command, which means the
|
|
# second echo should exit unsuccessfully and sigpipe.sh.out should not be
|
|
# created.
|
|
rm -f sigpipe.sh.out
|
|
|
|
{ echo foo && echo bar && echo baz > sigpipe.sh.out } | head -n 1 > /dev/null
|
|
|
|
# Failing commands don't make the test fail, just an explicit `exit 1` does.
|
|
# So the test only fails if sigpipe.sh.out exists (since then `exit 1` runs),
|
|
# not if the `test` statement returns false.
|
|
test -e sigpipe.sh.out && exit 1
|