diff options
author | Ron Yorston <rmy@pobox.com> | 2023-08-24 15:56:09 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2023-08-24 15:56:09 +0100 |
commit | 180a05ae7e00bf6a7a89740bba0bde300e34f93d (patch) | |
tree | 946ab496ca25839fbc8bcd30aa6bcc7ff430e51c | |
parent | 8d70faa33f782504838d0da8892f978d17adcdec (diff) | |
download | busybox-w32-180a05ae7e00bf6a7a89740bba0bde300e34f93d.tar.gz busybox-w32-180a05ae7e00bf6a7a89740bba0bde300e34f93d.tar.bz2 busybox-w32-180a05ae7e00bf6a7a89740bba0bde300e34f93d.zip |
Add test for .DEFAULT rule for prerequisite
Add a test for the problem reported in -w32 GitHub issue #354.
-rwxr-xr-x | testsuite/make.tests | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/make.tests b/testsuite/make.tests index 2d286d5b8..b53b4a2ea 100755 --- a/testsuite/make.tests +++ b/testsuite/make.tests | |||
@@ -23,6 +23,13 @@ testing "make .DEFAULT rule" \ | |||
23 | target: | 23 | target: |
24 | ' | 24 | ' |
25 | 25 | ||
26 | testing "make .DEFAULT rule for prerequisite" \ | ||
27 | "make -f - 2>/dev/null" "source\n" "" ' | ||
28 | .DEFAULT: | ||
29 | @echo $@ | ||
30 | target: source | ||
31 | ' | ||
32 | |||
26 | # Macros should be expanded before suffix substitution. The suffixes | 33 | # Macros should be expanded before suffix substitution. The suffixes |
27 | # can be obtained by macro expansion. | 34 | # can be obtained by macro expansion. |
28 | testing "make macro expansion and suffix substitution" \ | 35 | testing "make macro expansion and suffix substitution" \ |