File: failure

package info (click to toggle)
make-doc-non-dfsg 4.4.1-1
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid, trixie
  • size: 9,632 kB
  • sloc: ansic: 31,255; sh: 5,213; perl: 1,612; makefile: 160; lisp: 26; sed: 16
file content (49 lines) | stat: -rw-r--r-- 1,040 bytes parent folder | download | duplicates (2)
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;