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

Contents of /trunk/eweasel/tests/exec142/tcf

Parent Directory Parent Directory | Revision Log Revision Log


Revision 65297 - (show annotations)
Thu Nov 30 20:22:33 2006 UTC (13 years ago) by manus
File size: 1277 byte(s)
Moved from trunk/Src/eweasel to trunk/eweasel so that a simple checkout of the source code is not penalized by the lenghty process of checking out all the tests of eweasel.
1
2 --| Copyright (c) 1993-2006 University of Southern California and contributors.
3 --| All rights reserved.
4 --| Your use of this work is governed under the terms of the GNU General
5 --| Public License version 2.
6
7 -- This is a test control file
8
9 test_name invariant-changes-current
10 test_description A class creates an instance of a second class and calls a boolean feature `is_value_required' on it. The second class has an invariant that changes the value of a CHARACTER attribute, which affects the result returned by `is_value_required'. Code compiles fine when frozen with all assertions turned on, but when the system is executed it dies with a segmentation violation. Finalized code does not die, but it incorrectly prints "False" instead of "True".
11
12
13 copy_sub Ace $TEST Ace
14 copy_raw test.e $CLUSTER test.e
15 copy_raw a.e $CLUSTER a.e
16 compile_melted
17 compile_result ok
18
19 execute_work NONE exec_output1
20 execute_result ok
21 compare exec_output1 output
22
23 compile_frozen
24 compile_result ok
25
26 c_compile_work
27 c_compile_result ok
28
29 execute_work NONE exec_output2
30 execute_result ok
31 compare exec_output2 output
32
33 compile_final_keep
34 compile_result ok
35
36 c_compile_final
37 c_compile_result ok
38
39 execute_final NONE exec_output3
40 execute_result ok
41 compare exec_output3 output
42
43 test_end

Properties

Name Value
svn:eol-style native

  ViewVC Help
Powered by ViewVC 1.1.23