VirtualBox

source: kBuild/vendor/gnumake/current/tests/scripts/variables/negative@ 2596

最後變更 在這個檔案從2596是 2596,由 bird 提交於 13 年 前

gnumake/current -> 3.82-cvs.

  • 屬性 svn:eol-style 設為 LF
檔案大小: 1.1 KB
 
1# -*-perl-*-
2
3$description = "Run some negative tests (things that should fail).";
4
5# TEST #0
6# Check that non-terminated variable references are detected (and
7# reported using the best filename/lineno info
8run_make_test('
9foo = bar
10x = $(foo
11y = $x
12
13all: ; @echo $y
14',
15 '', '#MAKEFILE#:3: *** unterminated variable reference. Stop.',
16 512);
17
18# TEST #1
19# Bogus variable value passed on the command line.
20run_make_test(undef,
21 'x=\$\(other',
22 '#MAKEFILE#:4: *** unterminated variable reference. Stop.',
23 512);
24
25# TEST #2
26# Again, but this time while reading the makefile.
27run_make_test('
28foo = bar
29x = $(foo
30y = $x
31
32z := $y
33
34all: ; @echo $y
35',
36 '', '#MAKEFILE#:3: *** unterminated variable reference. Stop.',
37 512);
38
39# TEST #3
40# Bogus variable value passed on the command line.
41run_make_test(undef,
42 'x=\$\(other',
43 '#MAKEFILE#:4: *** unterminated variable reference. Stop.',
44 512);
45
461;
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette