/[eiffelstudio]/trunk/eweasel/tests/valid296/tcf
ViewVC logotype

Contents of /trunk/eweasel/tests/valid296/tcf

Parent Directory Parent Directory | Revision Log Revision Log


Revision 103692 - (show annotations)
Mon Dec 2 13:47:22 2019 UTC (7 weeks, 2 days ago) by alexk
File size: 1741 byte(s)
Extended the example to test that obsolete call warnings are reported for features with obsolete dates in the future only when the corresponding option requests so and are suppressed by default.
1 test_name obsolete-feature-call-date
2 test_description Obsolete feature call should be reported with different severity levels depending on the specified date. See also test#codeanalysis023.
3
4 -- Options: report warnings.
5 define WARNING ""
6 copy_sub Ace $TEST Ace
7
8 -- 4 years ago: error.
9 define_date DATE -1461
10 copy_sub test.e $CLUSTER test.e
11 compile_melted
12 compile_result validity_warning TEST "Obsolete Call:10" "Obsolete Call:11" "Obsolete Call:12"
13 cleanup_compile
14
15 -- Yerterday: warning.
16 define_date DATE -1
17 copy_sub test.e $CLUSTER test.e
18 compile_melted
19 compile_result validity_warning TEST "Obsolete Call:10" "Obsolete Call:11" "Obsolete Call:12"
20 cleanup_compile
21
22 -- In a month: hint.
23 define_date DATE 31
24 copy_sub test.e $CLUSTER test.e
25 compile_melted
26 compile_result ok
27 cleanup_compile
28
29 define WARNING <option><warning name="obsolete_feature" value="all"/></option>
30 copy_sub Ace $TEST Ace
31 compile_melted
32 compile_result validity_warning TEST "Obsolete Call:10" "Obsolete Call:11" "Obsolete Call:12"
33 cleanup_compile
34
35 -- Options: disable warnings.
36 define WARNING <option warning="none"/>
37 copy_sub Ace $TEST Ace
38
39 -- 4 years ago: error.
40 define_date DATE -1461
41 copy_sub test.e $CLUSTER test.e
42 compile_melted
43 compile_result validity_warning NONE "Obsolete Call"
44 cleanup_compile
45
46 -- Yerterday: warning.
47 define_date DATE -1
48 copy_sub test.e $CLUSTER test.e
49 compile_melted
50 compile_result ok
51 cleanup_compile
52
53 -- In a month: hint.
54 define_date DATE 31
55 copy_sub test.e $CLUSTER test.e
56 compile_melted
57 compile_result ok
58 cleanup_compile
59
60 define WARNING <option warning="none"><warning name="obsolete_feature" value="all"/></option>
61 copy_sub Ace $TEST Ace
62 compile_melted
63 compile_result ok
64 cleanup_compile
65
66 test_end

Properties

Name Value
svn:eol-style native
svn:keywords Author Date ID Revision

  ViewVC Help
Powered by ViewVC 1.1.23