view tests-custom/src/main/resources/org/openjdk/jcstress/desc/scratch.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 106941a341ac
children 14265b1b98bf
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="scratch-main">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Generated test</description>
        <case>
            <match>[0, 0]</match>
            <match>[0, 1]</match>
            <expect>ACCEPTABLE</expect>
            <description>Seeing default guard, can see any value</description>
        </case>
        <case>
            <match>[1, 1]</match>
            <expect>ACCEPTABLE</expect>
            <description>Seeing set guard, seeing the updated value</description>
        </case>
        <case>
            <match>[1, 0]</match>
            <expect>FORBIDDEN</expect>
            <description>Seeing set guard, not seeing the updated value</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </template>

    <test name="org.openjdk.jcstress.tests.scratch.basic.SynchronizedTest" template="scratch-main" />
    <test name="org.openjdk.jcstress.tests.scratch.basic.ThreadJoinTest" template="scratch-main" />
    <test name="org.openjdk.jcstress.tests.scratch.basic.ThreadStartTest" template="scratch-main" />
    <test name="org.openjdk.jcstress.tests.scratch.basic.VolatileTest" template="scratch-main" />
    <test name="org.openjdk.jcstress.tests.scratch.FailingCASTest" template="scratch-main" />
    <test name="org.openjdk.jcstress.tests.scratch.VW_Sync_1_Test" template="scratch-main" />
    <test name="org.openjdk.jcstress.tests.scratch.VW_Sync_2_Test" template="scratch-main" />

    <test name="org.openjdk.jcstress.tests.scratch.AQSTest">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Generated test</description>
        <case>
            <match>[true, true]</match>
            <expect>ACCEPTABLE</expect>
            <description>Default value</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.scratch.StaleReadTest">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Generated test</description>
        <case>
            <match>TERMINATED</match>
            <expect>ACCEPTABLE</expect>
            <description>Default value</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.scratch.Unsafe_GetDoubleVolatileTest">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Generated test</description>
        <case>
            <match>[0.0]</match>
            <match>[-1.0]</match>
            <expect>ACCEPTABLE</expect>
            <description>Correct values</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

</testsuite>