view tests-custom/src/main/resources/org/openjdk/jcstress/desc/tearing-buffers.xml @ 66:d7f7a93800e4

Rewire the grading levels: introduce ACCEPTABLE_SPEC, remove REQUIRED, renames.
author shade
date Thu, 28 Nov 2013 19:10:32 +0400
parents dd797d922f1c
children 7a9f5f818d94
line wrap: on
line source
<!--

    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>

    <template name="main">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>
            Tests if interleaved operations on the buffer experience word tearing.
        </description>
        <case>
            <match>[0, 128, 128]</match>
            <expect>ACCEPTABLE</expect>
            <description>
                Seeing all updates intact.
            </description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>
                All other cases are unexpected.
            </description>
        </unmatched>
    </template>

    <test template="main" name="org.openjdk.jcstress.tests.tearing.buffers.ByteBufferInterleaveTest" />
    <test template="main" name="org.openjdk.jcstress.tests.tearing.buffers.CharBufferInterleaveTest" />
    <test template="main" name="org.openjdk.jcstress.tests.tearing.buffers.DirectByteBufferInterleaveTest" />
    <test template="main" name="org.openjdk.jcstress.tests.tearing.buffers.DoubleBufferInterleaveTest" />
    <test template="main" name="org.openjdk.jcstress.tests.tearing.buffers.FloatBufferInterleaveTest" />
    <test template="main" name="org.openjdk.jcstress.tests.tearing.buffers.IntBufferInterleaveTest" />
    <test template="main" name="org.openjdk.jcstress.tests.tearing.buffers.LongBufferInterleaveTest" />
    <test template="main" name="org.openjdk.jcstress.tests.tearing.buffers.ShortBufferInterleaveTest" />

</testsuite>