commit 96bd13ad1fb4f39adf5a1ce95d0f8fb26936cb79
parent 18dabd1cd2118f6d89c1c42662dedcc6b3082edb
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Thu, 31 Oct 2024 15:57:34 +0100
tests/make: Improve 0048-include.sh
A new test case was added when a 2nd include is added
with a smaller file name length than the first one.
This case was added because failing in nul terminating
the include file name could not be detected in some
configurations.
Diffstat:
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/tests/make/execute/0048-include.sh b/tests/make/execute/0048-include.sh
@@ -1,16 +1,21 @@
#!/bin/sh
-trap 'rm -f $tmp1 $tmp2' EXIT INT QUIT TERM HUP
+trap 'rm -f $tmp1 $tmp2 $tmp3' EXIT INT QUIT TERM HUP
tmp1=tmp1.$$
tmp2=tmp2.$$
+tmp3=tmp3.$$
+
+touch $tmp3
echo Hello World! > $tmp2
-scc-make -f- hello <<'EOF' > $tmp1 2>&1
+scc-make -f- hello <<EOF > $tmp1 2>&1
FILE = test.mk
+F = $tmp3
-include $(FILE)
+include \$(FILE)
+include \$(F)
EOF
diff $tmp1 $tmp2