diff options
author | Paul Smith <psmith@gnu.org> | 2003-01-30 07:49:17 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2003-01-30 07:49:17 +0000 |
commit | 1fa3db14684b18e50383be6a83a1f17f716b0788 (patch) | |
tree | 8ba77c275874f57a1429145c1f4381135bc80820 /tests/scripts/features | |
parent | b7c728046e3f32cd93b04fa4a19a69cf6135e6e4 (diff) | |
download | gunmake-1fa3db14684b18e50383be6a83a1f17f716b0788.tar.gz |
Fix bug #2238: the read.c:eval() function was not entirely reentrant.
Apply patch #1022: fix a memory corruption on very long target-specific
variable definition lines.
Diffstat (limited to 'tests/scripts/features')
-rw-r--r-- | tests/scripts/features/targetvars | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/scripts/features/targetvars b/tests/scripts/features/targetvars index 2375f71..3989340 100644 --- a/tests/scripts/features/targetvars +++ b/tests/scripts/features/targetvars @@ -248,4 +248,23 @@ $answer = "ok ok foo pat\nok ok foo pat\n"; &compare_output($answer, &get_logfile(1)); +# Test #16 +# Test target-specific variables with very long command line +# (> make default buffer length) + +$makefile7 = &get_tmpfile; + +open(MAKEFILE, "> $makefile7"); +print MAKEFILE <<'EOF'; +base_metals_fmd_reports.sun5 base_metals_fmd_reports CreateRealPositions CreateMarginFunds deals_changed_since : BUILD_OBJ=$(shell if [ -f "build_information.generate" ]; then echo "$(OBJ_DIR)/build_information.o"; else echo "no build information"; fi ) + +deals_changed_since: ; @echo $(BUILD_OBJ) + +EOF +close(MAKEFILE); + +&run_make_with_options("$makefile7", '', &get_logfile); +$answer = "no build information\n"; +&compare_output($answer, &get_logfile(1)); + 1; |