scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 6b384cc12e8cd8f01bf66cc59f367b146e16b31a
parent 68f804cc91244bbde095066f12350f479a2b8676
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 17 Jan 2024 19:28:34 +0100

tests/make: Simplify 0009-ignore.sh

We can use a here-doc instead of creating a new file.

Diffstat:
Mtests/make/execute/0009-ignore.sh | 16+++++-----------
1 file changed, 5 insertions(+), 11 deletions(-)

diff --git a/tests/make/execute/0009-ignore.sh b/tests/make/execute/0009-ignore.sh @@ -1,27 +1,21 @@ #!/bin/sh -trap 'rm -f $tmp1 $tmp2 $tmp3' EXIT INT QUIT HUP TERM +trap 'rm -f $tmp1 $tmp2' EXIT INT QUIT HUP TERM tmp1=tmp1.$$ tmp2=tmp2.$$ -tmp3=tmp3.$$ cat <<EOF > $tmp2 +no-valid-program +sh: 1: no-valid-program: not found +make: error: don't know how to make hello EOF -cat <<EOF > $tmp3 +scc-make -f - error hello > $tmp1 2>&1 <<EOF .IGNORE: error: no-valid-program EOF -cat <<EOF > $tmp2 -no-valid-program -sh: 1: no-valid-program: not found -make: error: don't know how to make hello -EOF - -scc-make -f $tmp3 error hello > $tmp1 2>&1 - diff $tmp1 $tmp2