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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 77927 - (show annotations)
Thu Mar 26 21:45:28 2009 UTC (10 years, 6 months ago) by dhollen
File size: 484 byte(s)
Added eweasel test lib031 for bug #13854, where {FILE}.append is not thread-safe
even when each thread has its own FILE objects and writes its own independent files.
The bug is due to a static local in external `file_append' in file.c.

1
2 class TEST
3 inherit
4 THREAD_CONTROL
5 create
6 make
7
8 feature
9
10 make (args: ARRAY [STRING]) is
11 local
12 k, count, iterations, length: INTEGER
13 worker: WORKER
14 do
15 from
16 k := 1
17 count := args.item (1).to_integer
18 iterations := args.item (2).to_integer
19 length := args.item (3).to_integer
20 until
21 k > count
22 loop
23 create worker.make (iterations, length, '0' + k, "input" + k.out, "output" + k.out)
24 worker.launch
25 k := k + 1
26 end
27 join_all
28 end
29
30 end

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.23