VirtualBox

Ignore:
Timestamp:
May 16, 2005 4:54:08 PM (19 years ago)
Author:
bird
Message:

Current make snaphot, 2005-05-16.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/gmake/tests/scripts/functions/eval

    r53 r284  
    135135delete $ENV{EVAR};
    136136
     137
     138# Clean out previous information to allow new run_make_test() interface.
     139# If we ever convert all the above to run_make_test() we can remove this line.
     140$makefile = undef;
     141
     142# Test handling of backslashes in strings to be evaled.
     143
     144run_make_test('
     145define FOO
     146all: ; @echo hello \
     147world
     148endef
     149$(eval $(FOO))
     150', '', 'hello world');
     151
     152run_make_test('
     153define FOO
     154all: ; @echo he\llo
     155        @echo world
     156endef
     157$(eval $(FOO))
     158', '', 'hello
     159world');
     160
     161
     162# We don't allow new target/prerequisite relationships to be defined within a
     163# command script, because these are evaluated after snap_deps() and that
     164# causes lots of problems (like core dumps!)
     165# See Savannah bug # 12124.
     166
     167run_make_test('deps: ; $(eval deps: foo)', '',
     168              '#MAKEFILE#:1: *** prerequisites cannot be defined in command scripts.  Stop.',
     169              512);
     170
    1371711;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette