diff options
Diffstat (limited to 'testsuite/make.tests')
-rwxr-xr-x | testsuite/make.tests | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/make.tests b/testsuite/make.tests index 3d0d14dd0..67617f8a2 100755 --- a/testsuite/make.tests +++ b/testsuite/make.tests | |||
@@ -255,6 +255,18 @@ mk: | |||
255 | -include mk | 255 | -include mk |
256 | ' | 256 | ' |
257 | 257 | ||
258 | # $^ skips duplicate prerequisites, $+ doesn't | ||
259 | mkdir make.tempdir && cd make.tempdir || exit 1 | ||
260 | touch file1 file2 file3 | ||
261 | testing "make skip duplicate entries in \$^ but not \$+" \ | ||
262 | "make -f -" \ | ||
263 | "file1 file2 file3\nfile1 file2 file2 file3 file3\n" "" ' | ||
264 | target: file1 file2 file2 file3 file3 | ||
265 | @echo $^ | ||
266 | @echo $+ | ||
267 | ' | ||
268 | cd .. || exit 1; rm -rf make.tempdir 2>/dev/null | ||
269 | |||
258 | # Nested macro expansion is allowed. This should be compatible | 270 | # Nested macro expansion is allowed. This should be compatible |
259 | # with other implementations. | 271 | # with other implementations. |
260 | testing "make nested macro expansion" \ | 272 | testing "make nested macro expansion" \ |