Module Name: src Committed By: sjg Date: Sun Mar 6 00:02:15 UTC 2011
Modified Files: src/usr.bin/make: var.c src/usr.bin/make/unit-tests: Makefile cond1 test.exp Added Files: src/usr.bin/make/unit-tests: misc sysv Log Message: Add unit tests to check that exists(some/dir/) works Also fix handling of sysV substitutions when lhs and variable are empty. Also that modifiers do not cause errors during conditional tests when undefined variables should otherwise be ok. Ie. .if defined(nosuch) && ${nosuch:Mx} != "" To generate a diff of this commit: cvs rdiff -u -r1.161 -r1.162 src/usr.bin/make/var.c cvs rdiff -u -r1.30 -r1.31 src/usr.bin/make/unit-tests/Makefile cvs rdiff -u -r1.4 -r1.5 src/usr.bin/make/unit-tests/cond1 cvs rdiff -u -r0 -r1.1 src/usr.bin/make/unit-tests/misc \ src/usr.bin/make/unit-tests/sysv cvs rdiff -u -r1.34 -r1.35 src/usr.bin/make/unit-tests/test.exp Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.