view tests-custom/src/main/resources/org/openjdk/jcstress/desc/initObjects.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="allZeroes">
        <case>
            <match>[-1, -1, -1, -1]</match>
            <expect>ACCEPTABLE</expect>
            <description>
                Seeing the null object. This is legal case since there is a race between actor and observer.
            </description>
        </case>
        <case>
            <match>[0, 0, 0, 0]</match>
            <expect>ACCEPTABLE</expect>
            <description>
                Seeing the completely initialized objects, and all elements are with default values.
            </description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>
                This case is not expected.
            </description>
        </unmatched>
    </template>

    <template name="allZeroesChar">
        <case>
            <match>[N, N, N, N]</match>
            <expect>ACCEPTABLE</expect>
            <description>
                Seeing the null objects. This is legal case since there is a race between actor and observer.
            </description>
        </case>
        <case>
            <match>[A, A, A, A]</match>
            <expect>ACCEPTABLE</expect>
            <description>
                Seeing the completely initialized objects, and all elements are with default values.
            </description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>
                This case is not expected.
            </description>
        </unmatched>
    </template>

    <template name="allZeroesFloat">
        <case>
            <match>[-1.0, -1.0, -1.0, -1.0]</match>
            <expect>ACCEPTABLE</expect>
            <description>
                Seeing the null objects. This is legal case since there is a race between actor and observer.
            </description>
        </case>
        <case>
            <match>[0.0, 0.0, 0.0, 0.0]</match>
            <expect>ACCEPTABLE</expect>
            <description>
                Seeing the completely initialized objects, and all elements are with default values.
            </description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>
                This case is not expected.
            </description>
        </unmatched>
    </template>

    <template name="allZeroesBoolean">
        <case>
            <match>[false, false, false, false]</match>
            <expect>ACCEPTABLE</expect>
            <description>
                Seeing the completely initialized objects, and all elements are with default values.
            </description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>
                This case is not expected.
            </description>
        </unmatched>
    </template>

    <test name="org.openjdk.jcstress.tests.init.objects.plain.ByteFieldsTest" template="allZeroes">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests if byte[] has the proper default values.</description>
    </test>

    <test name="org.openjdk.jcstress.tests.init.objects.plain.IntFieldsTest" template="allZeroes">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests if int[] has the proper default values.</description>
    </test>

    <test name="org.openjdk.jcstress.tests.init.objects.plain.ShortFieldsTest" template="allZeroes">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests if short[] has the proper default values.</description>
    </test>

    <test name="org.openjdk.jcstress.tests.init.objects.plain.LongFieldsTest" template="allZeroes">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests if long[] has the proper default values.</description>
    </test>

    <test name="org.openjdk.jcstress.tests.init.objects.plain.ObjectFieldsTest" template="allZeroes">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests if Object[] has the proper default values.</description>
    </test>

    <test name="org.openjdk.jcstress.tests.init.objects.plain.FloatFieldsTest" template="allZeroesFloat">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests if float[] has the proper default values.</description>
    </test>

    <test name="org.openjdk.jcstress.tests.init.objects.plain.DoubleFieldsTest" template="allZeroesFloat">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests if double[] has the proper default values.</description>
    </test>

    <test name="org.openjdk.jcstress.tests.init.objects.plain.BooleanFieldsTest" template="allZeroesBoolean">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests if boolean[] has the proper default values.</description>
    </test>

    <test name="org.openjdk.jcstress.tests.init.objects.plain.CharFieldsTest" template="allZeroesChar">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests if char[] has the proper default values.</description>
    </test>

    <test name="org.openjdk.jcstress.tests.init.objects.volatiles.ByteFieldsTest" template="allZeroes">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests if byte[] has the proper default values.</description>
    </test>

    <test name="org.openjdk.jcstress.tests.init.objects.volatiles.IntFieldsTest" template="allZeroes">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests if int[] has the proper default values.</description>
    </test>

    <test name="org.openjdk.jcstress.tests.init.objects.volatiles.ShortFieldsTest" template="allZeroes">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests if short[] has the proper default values.</description>
    </test>

    <test name="org.openjdk.jcstress.tests.init.objects.volatiles.LongFieldsTest" template="allZeroes">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests if long[] has the proper default values.</description>
    </test>

    <test name="org.openjdk.jcstress.tests.init.objects.volatiles.ObjectFieldsTest" template="allZeroes">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests if Object[] has the proper default values.</description>
    </test>

    <test name="org.openjdk.jcstress.tests.init.objects.volatiles.FloatFieldsTest" template="allZeroesFloat">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests if float[] has the proper default values.</description>
    </test>

    <test name="org.openjdk.jcstress.tests.init.objects.volatiles.DoubleFieldsTest" template="allZeroesFloat">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests if double[] has the proper default values.</description>
    </test>

    <test name="org.openjdk.jcstress.tests.init.objects.volatiles.BooleanFieldsTest" template="allZeroesBoolean">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests if boolean[] has the proper default values.</description>
    </test>

    <test name="org.openjdk.jcstress.tests.init.objects.volatiles.CharFieldsTest" template="allZeroesChar">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests if char[] has the proper default values.</description>
    </test>


</testsuite>