1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# -*-perl-*-
$description = "Test miscellaneous failures.";
# Test that the "did you mean TAB" message is printed properly
run_make_test(q!
$x.
!,
'', '#MAKEFILE#:2: *** missing separator. Stop.', 512);
run_make_test(q!
foo:
bar
!,
'', '#MAKEFILE#:3: *** missing separator (did you mean TAB instead of 8 spaces?). Stop.', 512);
run_make_test(q!
.RECIPEPREFIX = :
foo:
bar
!,
'', '#MAKEFILE#:4: *** missing separator. Stop.', 512);
for my $kw ('eq', 'neq') {
run_make_test(qq!
if$kw(foo,bar)
\$(error ouch)
endif
!,
'', '#MAKEFILE#:2: *** missing separator (ifeq/ifneq must be followed by whitespace). Stop.', 512);
run_make_test(qq!
if$kw
\$(error ouch)
endif
!,
'', '#MAKEFILE#:2: *** invalid syntax in conditional. Stop.', 512);
run_make_test(qq!
if$kw blah
\$(error ouch)
endif
!,
'', '#MAKEFILE#:2: *** invalid syntax in conditional. Stop.', 512);
}
1;
|