2243N/A#
2362N/A# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
2243N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2243N/A#
2243N/A# This code is free software; you can redistribute it and/or modify it
2243N/A# under the terms of the GNU General Public License version 2 only, as
2243N/A# published by the Free Software Foundation.
2243N/A#
2243N/A# This code is distributed in the hope that it will be useful, but WITHOUT
2243N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
2243N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
2243N/A# version 2 for more details (a copy is included in the LICENSE file that
2243N/A# accompanied this code).
2243N/A#
2243N/A# You should have received a copy of the GNU General Public License version
2243N/A# 2 along with this work; if not, write to the Free Software Foundation,
2243N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2243N/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.
2243N/A#
2243N/A
2243N/A# @test
2243N/A# @bug 6813340
2243N/A# @summary X509Factory should not depend on is.available()==0
2243N/A
2243N/Aif [ "${TESTSRC}" = "" ] ; then
2243N/A TESTSRC="."
2243N/Afi
2243N/Aif [ "${TESTJAVA}" = "" ] ; then
2243N/A echo "TESTJAVA not set. Test cannot execute."
2243N/A echo "FAILED!!!"
2243N/A exit 1
2243N/Afi
2243N/A
2243N/A# set platform-dependent variables
2243N/AOS=`uname -s`
2243N/Acase "$OS" in
2243N/A Windows_* )
2243N/A FS="\\"
2243N/A ;;
2243N/A * )
2243N/A FS="/"
2243N/A ;;
2243N/Aesac
2243N/A
2243N/A${TESTJAVA}${FS}bin${FS}javac -d . ${TESTSRC}${FS}SlowStream.java
2243N/A${TESTJAVA}${FS}bin${FS}java -Dtest.src=${TESTSRC} SlowStreamWriter | \
2243N/A ${TESTJAVA}${FS}bin${FS}java SlowStreamReader