]> granicus.if.org Git - strace/commit
tests/sched.test: use heredoc in order to avoid spawning of subprocess
authorEugene Syromyatnikov <evgsyr@gmail.com>
Mon, 13 Mar 2017 16:52:41 +0000 (17:52 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 15 Mar 2017 01:10:51 +0000 (01:10 +0000)
commitb24254d34c505df081f65961e35954c59677a0e4
tree38ccfbb7d4e36118bdef0760479429be04b0866c
parent30c16384ef919c56f0c2d1bd234a42facc87032e
tests/sched.test: use heredoc in order to avoid spawning of subprocess

Pipelined commands executed in subprocesses (some shells have special
provision for last command in the pipeline, but it is not guaranteed
and not POSIX), so exit codes of these subprocesses can be lost.
In order to avoid creating subprocesses, input for read commands
is better to supply via heredoc and not pipe.

* tests/sched.test: Move test cases to heredoc.
tests/sched.test