xref: /freebsd/contrib/bmake/unit-tests/varmod-match-escape.exp (revision 36d6566e5985030fd2f1100bd9c1387bbe0bd290)
1Global:SPECIALS = \: : \\ * \*
2CondParser_Eval: ${SPECIALS:M${:U}\:} != ${SPECIALS:M\:${:U}}
3Var_Parse: ${SPECIALS:M${:U}\:} != ${SPECIALS:M\:${:U}} with VARE_UNDEFERR|VARE_WANTRES
4Applying ${SPECIALS:M...} to "\: : \\ * \*" (VARE_UNDEFERR|VARE_WANTRES, none, none)
5Var_Parse: ${:U}\: with VARE_UNDEFERR|VARE_WANTRES
6Applying ${:U} to "" (VARE_UNDEFERR|VARE_WANTRES, none, VEF_UNDEF)
7Result of ${:U} is "" (VARE_UNDEFERR|VARE_WANTRES, none, VEF_UNDEF|VEF_DEF)
8Pattern[SPECIALS] for [\: : \\ * \*] is [\:]
9ModifyWords: split "\: : \\ * \*" into 5 words
10VarMatch [\:] [\:]
11VarMatch [:] [\:]
12VarMatch [\\] [\:]
13VarMatch [*] [\:]
14VarMatch [\*] [\:]
15Result of ${SPECIALS:M${:U}\:} is ":" (VARE_UNDEFERR|VARE_WANTRES, none, none)
16Var_Parse: ${SPECIALS:M\:${:U}} with VARE_UNDEFERR|VARE_WANTRES
17Applying ${SPECIALS:M...} to "\: : \\ * \*" (VARE_UNDEFERR|VARE_WANTRES, none, none)
18Var_Parse: ${:U} with VARE_UNDEFERR|VARE_WANTRES
19Applying ${:U} to "" (VARE_UNDEFERR|VARE_WANTRES, none, VEF_UNDEF)
20Result of ${:U} is "" (VARE_UNDEFERR|VARE_WANTRES, none, VEF_UNDEF|VEF_DEF)
21Pattern[SPECIALS] for [\: : \\ * \*] is [:]
22ModifyWords: split "\: : \\ * \*" into 5 words
23VarMatch [\:] [:]
24VarMatch [:] [:]
25VarMatch [\\] [:]
26VarMatch [*] [:]
27VarMatch [\*] [:]
28Result of ${SPECIALS:M\:${:U}} is ":" (VARE_UNDEFERR|VARE_WANTRES, none, none)
29lhs = ":", rhs = ":", op = !=
30Global:VALUES = : :: :\:
31CondParser_Eval: ${VALUES:M\:${:U\:}} != ${VALUES:M${:U\:}\:}
32Var_Parse: ${VALUES:M\:${:U\:}} != ${VALUES:M${:U\:}\:} with VARE_UNDEFERR|VARE_WANTRES
33Applying ${VALUES:M...} to ": :: :\:" (VARE_UNDEFERR|VARE_WANTRES, none, none)
34Var_Parse: ${:U:} with VARE_UNDEFERR|VARE_WANTRES
35Applying ${:U} to "" (VARE_UNDEFERR|VARE_WANTRES, none, VEF_UNDEF)
36Result of ${:U} is "" (VARE_UNDEFERR|VARE_WANTRES, none, VEF_UNDEF|VEF_DEF)
37Pattern[VALUES] for [: :: :\:] is [:]
38ModifyWords: split ": :: :\:" into 3 words
39VarMatch [:] [:]
40VarMatch [::] [:]
41VarMatch [:\:] [:]
42Result of ${VALUES:M\:${:U\:}} is ":" (VARE_UNDEFERR|VARE_WANTRES, none, none)
43Var_Parse: ${VALUES:M${:U\:}\:} with VARE_UNDEFERR|VARE_WANTRES
44Applying ${VALUES:M...} to ": :: :\:" (VARE_UNDEFERR|VARE_WANTRES, none, none)
45Var_Parse: ${:U\:}\: with VARE_UNDEFERR|VARE_WANTRES
46Applying ${:U...} to "" (VARE_UNDEFERR|VARE_WANTRES, none, VEF_UNDEF)
47Result of ${:U\:} is ":" (VARE_UNDEFERR|VARE_WANTRES, none, VEF_UNDEF|VEF_DEF)
48Pattern[VALUES] for [: :: :\:] is [:\:]
49ModifyWords: split ": :: :\:" into 3 words
50VarMatch [:] [:\:]
51VarMatch [::] [:\:]
52VarMatch [:\:] [:\:]
53Result of ${VALUES:M${:U\:}\:} is "::" (VARE_UNDEFERR|VARE_WANTRES, none, none)
54lhs = ":", rhs = "::", op = !=
55make: "varmod-match-escape.mk" line 42: warning: XXX: Oops
56Global:.MAKEFLAGS =  -r -k -d cv -d
57Global:.MAKEFLAGS =  -r -k -d cv -d 0
58make: "varmod-match-escape.mk" line 67: Dollar followed by nothing
59make: Fatal errors encountered -- cannot continue
60make: stopped in unit-tests
61exit status 1
62