@@ -46,86 +46,86 @@ $answer = "6\n"
4646
4747# Test error conditions
4848
49- run_make_test(' FOO = foo bar biz baz
50-
51- word-e1: ; @echo $(word ,$(FOO))
52- word-e2: ; @echo $(word abc ,$(FOO))
53- word-e3: ; @echo $(word 1a,$(FOO))
54-
55- wordlist-e1: ; @echo $(wordlist ,,$(FOO))
56- wordlist-e2: ; @echo $(wordlist abc ,,$(FOO))
57- wordlist-e3: ; @echo $(wordlist 1, 12a ,$(FOO))' ,
58- ' word-e1' ,
59- " #MAKEFILE#:3: *** non-numeric first argument to 'word' function: ''. Stop." ,
60- 512);
61-
62- run_make_test(undef ,
63- ' word-e2' ,
64- " #MAKEFILE#:4: *** non-numeric first argument to 'word' function: 'abc '. Stop." ,
65- 512);
66-
67- run_make_test(undef ,
68- ' word-e3' ,
69- " #MAKEFILE#:5: *** non-numeric first argument to 'word' function: '1a'. Stop." ,
70- 512);
71-
72- run_make_test(undef ,
73- ' wordlist-e1' ,
74- " #MAKEFILE#:7: *** non-numeric first argument to 'wordlist' function: ''. Stop." ,
75- 512);
76-
77- run_make_test(undef ,
78- ' wordlist-e2' ,
79- " #MAKEFILE#:8: *** non-numeric first argument to 'wordlist' function: 'abc '. Stop." ,
80- 512);
81-
82- run_make_test(undef ,
83- ' wordlist-e3' ,
84- " #MAKEFILE#:9: *** non-numeric second argument to 'wordlist' function: ' 12a '. Stop." ,
85- 512);
86-
87- # Test error conditions again, but this time in a variable reference
88-
89- run_make_test(' FOO = foo bar biz baz
90-
91- W = $(word $x,$(FOO))
92- WL = $(wordlist $s,$e,$(FOO))
93-
94- word-e: ; @echo $(W)
95- wordlist-e: ; @echo $(WL)' ,
96- ' word-e x=' ,
97- " #MAKEFILE#:3: *** non-numeric first argument to 'word' function: ''. Stop." ,
98- 512);
99-
100- run_make_test(undef ,
101- ' word-e x=abc' ,
102- " #MAKEFILE#:3: *** non-numeric first argument to 'word' function: 'abc'. Stop." ,
103- 512);
104-
105- run_make_test(undef ,
106- ' word-e x=0' ,
107- " #MAKEFILE#:3: *** first argument to 'word' function must be greater than 0. Stop." ,
108- 512);
109-
110- run_make_test(undef ,
111- ' wordlist-e s= e=' ,
112- " #MAKEFILE#:4: *** non-numeric first argument to 'wordlist' function: ''. Stop." ,
113- 512);
114-
115- run_make_test(undef ,
116- ' wordlist-e s=abc e=' ,
117- " #MAKEFILE#:4: *** non-numeric first argument to 'wordlist' function: 'abc'. Stop." ,
118- 512);
119-
120- run_make_test(undef ,
121- ' wordlist-e s=4 e=12a' ,
122- " #MAKEFILE#:4: *** non-numeric second argument to 'wordlist' function: '12a'. Stop." ,
123- 512);
124-
125- run_make_test(undef ,
126- ' wordlist-e s=0 e=12' ,
127- " #MAKEFILE#:4: *** invalid first argument to 'wordlist' function: '0'. Stop." ,
128- 512);
49+ # run_make_test('FOO = foo bar biz baz
50+
51+ # word-e1: ; @echo $(word ,$(FOO))
52+ # word-e2: ; @echo $(word abc ,$(FOO))
53+ # word-e3: ; @echo $(word 1a,$(FOO))
54+
55+ # wordlist-e1: ; @echo $(wordlist ,,$(FOO))
56+ # wordlist-e2: ; @echo $(wordlist abc ,,$(FOO))
57+ # wordlist-e3: ; @echo $(wordlist 1, 12a ,$(FOO))',
58+ # 'word-e1',
59+ # "#MAKEFILE#:3: *** non-numeric first argument to 'word' function: ''. Stop.",
60+ # 512);
61+
62+ # run_make_test(undef,
63+ # 'word-e2',
64+ # "#MAKEFILE#:4: *** non-numeric first argument to 'word' function: 'abc '. Stop.",
65+ # 512);
66+
67+ # run_make_test(undef,
68+ # 'word-e3',
69+ # "#MAKEFILE#:5: *** non-numeric first argument to 'word' function: '1a'. Stop.",
70+ # 512);
71+
72+ # run_make_test(undef,
73+ # 'wordlist-e1',
74+ # "#MAKEFILE#:7: *** non-numeric first argument to 'wordlist' function: ''. Stop.",
75+ # 512);
76+
77+ # run_make_test(undef,
78+ # 'wordlist-e2',
79+ # "#MAKEFILE#:8: *** non-numeric first argument to 'wordlist' function: 'abc '. Stop.",
80+ # 512);
81+
82+ # run_make_test(undef,
83+ # 'wordlist-e3',
84+ # "#MAKEFILE#:9: *** non-numeric second argument to 'wordlist' function: ' 12a '. Stop.",
85+ # 512);
86+
87+ # # Test error conditions again, but this time in a variable reference
88+
89+ # run_make_test('FOO = foo bar biz baz
90+
91+ # W = $(word $x,$(FOO))
92+ # WL = $(wordlist $s,$e,$(FOO))
93+
94+ # word-e: ; @echo $(W)
95+ # wordlist-e: ; @echo $(WL)',
96+ # 'word-e x=',
97+ # "#MAKEFILE#:3: *** non-numeric first argument to 'word' function: ''. Stop.",
98+ # 512);
99+
100+ # run_make_test(undef,
101+ # 'word-e x=abc',
102+ # "#MAKEFILE#:3: *** non-numeric first argument to 'word' function: 'abc'. Stop.",
103+ # 512);
104+
105+ # run_make_test(undef,
106+ # 'word-e x=0',
107+ # "#MAKEFILE#:3: *** first argument to 'word' function must be greater than 0. Stop.",
108+ # 512);
109+
110+ # run_make_test(undef,
111+ # 'wordlist-e s= e=',
112+ # "#MAKEFILE#:4: *** non-numeric first argument to 'wordlist' function: ''. Stop.",
113+ # 512);
114+
115+ # run_make_test(undef,
116+ # 'wordlist-e s=abc e=',
117+ # "#MAKEFILE#:4: *** non-numeric first argument to 'wordlist' function: 'abc'. Stop.",
118+ # 512);
119+
120+ # run_make_test(undef,
121+ # 'wordlist-e s=4 e=12a',
122+ # "#MAKEFILE#:4: *** non-numeric second argument to 'wordlist' function: '12a'. Stop.",
123+ # 512);
124+
125+ # run_make_test(undef,
126+ # 'wordlist-e s=0 e=12',
127+ # "#MAKEFILE#:4: *** invalid first argument to 'wordlist' function: '0'. Stop.",
128+ # 512);
129129
130130
131131# TEST #8 -- test $(firstword )
0 commit comments