diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests-custom/src/main/resources/org/openjdk/jcstress/desc/volatiles-iriw.xml	Thu Jul 04 12:32:04 2013 +0400
@@ -0,0 +1,77 @@
+<!--
+
+    Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
+    DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+
+    This code is free software; you can redistribute it and/or modify it
+    under the terms of the GNU General Public License version 2 only, as
+    published by the Free Software Foundation.  Oracle designates this
+    particular file as subject to the "Classpath" exception as provided
+    by Oracle in the LICENSE file that accompanied this code.
+
+    This code is distributed in the hope that it will be useful, but WITHOUT
+    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+    version 2 for more details (a copy is included in the LICENSE file that
+    accompanied this code).
+
+    You should have received a copy of the GNU General Public License version
+    2 along with this work; if not, write to the Free Software Foundation,
+    Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+
+    Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+    or visit www.oracle.com if you need additional information or have any
+    questions.
+
+-->
+<testsuite>
+
+    <test name="org.openjdk.jcstress.tests.volatiles.IRIWTest">
+        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
+        <description>Tests the IRIW sequential consistency.</description>
+        <case>
+            <match>[0, 1, 1, 0]</match>
+            <expect>ACCEPTABLE</expect>
+            <description>This is a rare event, because it requires precise juxtaposition of threads to observe.</description>
+            <refs>
+                <url>http://cs.oswego.edu/pipermail/concurrency-interest/2013-January/010608.html</url>
+            </refs>
+        </case>
+        <case>
+            <match>[1, 0, 0, 1]</match>
+            <expect>KNOWN_ACCEPTABLE</expect>
+            <description>Threads see the updates in the inconsistent order</description>
+        </case>
+        <unmatched>
+            <expect>ACCEPTABLE</expect>
+            <description>
+                All cases are accepted.
+            </description>
+        </unmatched>
+    </test>
+
+    <test name="org.openjdk.jcstress.tests.volatiles.VolatileIRIWTest">
+        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
+        <description>Tests the IRIW sequential consistency.</description>
+        <case>
+            <match>[0, 1, 1, 0]</match>
+            <expect>ACCEPTABLE</expect>
+            <description>This is a rare event, because it requires precise juxtaposition of threads to observe.</description>
+            <refs>
+                <url>http://cs.oswego.edu/pipermail/concurrency-interest/2013-January/010608.html</url>
+            </refs>
+        </case>
+        <case>
+            <match>[1, 0, 0, 1]</match>
+            <expect>FORBIDDEN</expect>
+            <description>Threads see the updates in the inconsistent order</description>
+        </case>
+        <unmatched>
+            <expect>ACCEPTABLE</expect>
+            <description>
+                All cases are accepted.
+            </description>
+        </unmatched>
+    </test>
+
+</testsuite>
\ No newline at end of file