/[eiffelstudio]/trunk/eweasel/tests/lib033/test.e
ViewVC logotype

Contents of /trunk/eweasel/tests/lib033/test.e

Parent Directory Parent Directory | Revision Log Revision Log


Revision 81022 - (show annotations)
Tue Oct 6 16:07:22 2009 UTC (10 years, 2 months ago) by manus
File size: 467 byte(s)
Added a new test showing that querying `count' between two reads on a file open in read/write mode messes
  up the internal buffering on Windows (possibly other platforms).

1 class
2 TEST
3
4 create
5 make
6
7 feature {NONE} -- Initialization
8 make
9 -- Entry point
10 local
11 f: RAW_FILE
12 i: INTEGER
13 do
14 create f.make_open_write ("raw_file")
15 f.put_integer (47)
16 f.put_double (12345678.0)
17 f.close
18
19 -- make_open_read is fine, but *write or *append causes the problem
20 create f.make_open_read_write ("raw_file")
21 create f.make_open_read_write ("raw_file")
22 f.read_integer
23 i := f.count
24 f.read_double
25 f.close
26 end
27
28 end

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.23