1#                                                                    -*-perl-*-
2
3$description = "Run some negative tests (things that should fail).";
4
5# TEST #0
6# Check that non-terminated variable references are detected (and
7# reported using the best filename/lineno info
8run_make_test('
9foo = bar
10x = $(foo
11y = $x
12
13all: ; @echo $y
14',
15              '', '#MAKEFILE#:3: *** unterminated variable reference.  Stop.',
16              512);
17
18# TEST #1
19# Bogus variable value passed on the command line.
20run_make_test(undef,
21              'x=\$\(other',
22              '#MAKEFILE#:4: *** unterminated variable reference.  Stop.',
23              512);
24
25# TEST #2
26# Again, but this time while reading the makefile.
27run_make_test('
28foo = bar
29x = $(foo
30y = $x
31
32z := $y
33
34all: ; @echo $y
35',
36              '', '#MAKEFILE#:3: *** unterminated variable reference.  Stop.',
37              512);
38
39# TEST #3
40# Bogus variable value passed on the command line.
41run_make_test(undef,
42              'x=\$\(other',
43              '#MAKEFILE#:4: *** unterminated variable reference.  Stop.',
44              512);
45
461;
47