3 $description = "Run some negative tests (things that should fail).";
6 # Check that non-terminated variable references are detected (and
7 # reported using the best filename/lineno info
15 '', '#MAKEFILE#:3: *** unterminated variable reference. Stop.',
19 # Bogus variable value passed on the command line.
22 '#MAKEFILE#:4: *** unterminated variable reference. Stop.',
26 # Again, but this time while reading the makefile.
36 '', '#MAKEFILE#:3: *** unterminated variable reference. Stop.',
40 # Bogus variable value passed on the command line.
43 '#MAKEFILE#:4: *** unterminated variable reference. Stop.',
46 # Whitespace not allowed in variable names
47 run_make_test('x y =', '',
48 '#MAKEFILE#:1: *** missing separator. Stop.', 512);
50 run_make_test('x y=', '',
51 '#MAKEFILE#:1: *** missing separator. Stop.', 512);
53 # In theory an empty variable should be ignored, but during parsing it's a
54 # real token and so this fails. I'm not 100% sure if this is right or not.
56 run_make_test('x $X=', '',
57 '#MAKEFILE#:1: *** missing separator. Stop.', 512);