comparison tests-custom/src/main/resources/org/openjdk/jcstress/desc/volatiles-iriw.xml @ 0:dd797d922f1c

Initial import.
author shade
date Thu, 04 Jul 2013 12:32:04 +0400
parents
children d7f7a93800e4
comparison
equal deleted inserted replaced
-1:000000000000 0:959c090d15bb
1 <!--
2
3 Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
4 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5
6 This code is free software; you can redistribute it and/or modify it
7 under the terms of the GNU General Public License version 2 only, as
8 published by the Free Software Foundation. Oracle designates this
9 particular file as subject to the "Classpath" exception as provided
10 by Oracle in the LICENSE file that accompanied this code.
11
12 This code is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 version 2 for more details (a copy is included in the LICENSE file that
16 accompanied this code).
17
18 You should have received a copy of the GNU General Public License version
19 2 along with this work; if not, write to the Free Software Foundation,
20 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
21
22 Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
23 or visit www.oracle.com if you need additional information or have any
24 questions.
25
26 -->
27 <testsuite>
28
29 <test name="org.openjdk.jcstress.tests.volatiles.IRIWTest">
30 <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
31 <description>Tests the IRIW sequential consistency.</description>
32 <case>
33 <match>[0, 1, 1, 0]</match>
34 <expect>ACCEPTABLE</expect>
35 <description>This is a rare event, because it requires precise juxtaposition of threads to observe.</description>
36 <refs>
37 <url>http://cs.oswego.edu/pipermail/concurrency-interest/2013-January/010608.html</url>
38 </refs>
39 </case>
40 <case>
41 <match>[1, 0, 0, 1]</match>
42 <expect>KNOWN_ACCEPTABLE</expect>
43 <description>Threads see the updates in the inconsistent order</description>
44 </case>
45 <unmatched>
46 <expect>ACCEPTABLE</expect>
47 <description>
48 All cases are accepted.
49 </description>
50 </unmatched>
51 </test>
52
53 <test name="org.openjdk.jcstress.tests.volatiles.VolatileIRIWTest">
54 <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
55 <description>Tests the IRIW sequential consistency.</description>
56 <case>
57 <match>[0, 1, 1, 0]</match>
58 <expect>ACCEPTABLE</expect>
59 <description>This is a rare event, because it requires precise juxtaposition of threads to observe.</description>
60 <refs>
61 <url>http://cs.oswego.edu/pipermail/concurrency-interest/2013-January/010608.html</url>
62 </refs>
63 </case>
64 <case>
65 <match>[1, 0, 0, 1]</match>
66 <expect>FORBIDDEN</expect>
67 <description>Threads see the updates in the inconsistent order</description>
68 </case>
69 <unmatched>
70 <expect>ACCEPTABLE</expect>
71 <description>
72 All cases are accepted.
73 </description>
74 </unmatched>
75 </test>
76
77 </testsuite>