Module Name: src Committed By: rillig Date: Thu Aug 18 05:37:05 UTC 2022
Modified Files: src/usr.bin/make/unit-tests: opt-query.mk Log Message: tests/make: fix test for option '-q' in ATF mode When running 'make test' in usr.bin/make, MAKE is set to '$PWD/make', and when that file is used as a dependency, everything works as expected. When running the tests via ATF, MAKE is set to simply 'make', based on argv[0]. Using 'make' as a dependency searches in the current directory but not in /usr/bin, so the file is not found, which makes the "up-to-date" target out of date. Switch the dependeny from ${MAKE} to ${MAKEFILE}, as that file does not involve any $PATH magic and is also guaranteed to be older than the 'up-to-date' file that is created while running the test. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/usr.bin/make/unit-tests/opt-query.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.