430N/A#
2362N/A# Copyright (c) 2005, 2008, Oracle and/or its affiliates. All rights reserved.
430N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
430N/A#
430N/A# This code is free software; you can redistribute it and/or modify it
430N/A# under the terms of the GNU General Public License version 2 only, as
430N/A# published by the Free Software Foundation.
430N/A#
430N/A# This code is distributed in the hope that it will be useful, but WITHOUT
430N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
430N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
430N/A# version 2 for more details (a copy is included in the LICENSE file that
430N/A# accompanied this code).
430N/A#
430N/A# You should have received a copy of the GNU General Public License version
430N/A# 2 along with this work; if not, write to the Free Software Foundation,
430N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
430N/A#
2362N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A# or visit www.oracle.com if you need additional information or have any
2362N/A# questions.
430N/A#
430N/A
430N/A#!/bin/sh
430N/A# @test
430N/A# @bug 6363434 6588884
430N/A# @summary Verify that shared memory pixmaps are not broken
430N/A# by filling a VolatileImage with red color and copying it
430N/A# to the screen.
430N/A# Note that we force the use of shared memory pixmaps.
430N/A# @author Dmitri.Trembovetski
430N/A
430N/Aecho "TESTJAVA=${TESTJAVA}"
430N/Aecho "TESTSRC=${TESTSRC}"
430N/Aecho "TESTCLASSES=${TESTCLASSES}"
430N/Acd ${TESTSRC}
430N/A${TESTJAVA}/bin/javac -d ${TESTCLASSES} SharedMemoryPixmapsTest.java
430N/Acd ${TESTCLASSES}
430N/A
430N/ANO_J2D_DGA=true
430N/AJ2D_PIXMAPS=shared
430N/Aexport NO_J2D_DGA J2D_PIXMAPS
430N/A
430N/A${TESTJAVA}/bin/java SharedMemoryPixmapsTest
430N/A
430N/Aif [ $? -ne 0 ]; then
430N/A echo "Test failed!"
430N/A exit 1
430N/Afi
430N/A
430N/Aexit 0