2012-06-08 12:49:12 -04:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2012-12-20 16:24:51 -08:00
|
|
|
# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
|
2012-06-08 12:49:12 -04:00
|
|
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
#
|
|
|
|
|
|
|
|
##
|
|
|
|
## @test Test7158804.sh
|
|
|
|
## @bug 7158804
|
|
|
|
## @summary Improve config file parsing
|
|
|
|
## @run shell Test7158804.sh
|
|
|
|
##
|
2013-03-27 09:49:51 -07:00
|
|
|
if [ "${TESTSRC}" = "" ]
|
2012-06-08 12:49:12 -04:00
|
|
|
then
|
2013-03-27 09:49:51 -07:00
|
|
|
TESTSRC=${PWD}
|
|
|
|
echo "TESTSRC not set. Using "${TESTSRC}" as default"
|
2012-06-08 12:49:12 -04:00
|
|
|
fi
|
2013-03-27 09:49:51 -07:00
|
|
|
echo "TESTSRC=${TESTSRC}"
|
|
|
|
## Adding common setup Variables for running shell tests.
|
|
|
|
. ${TESTSRC}/../../test_env.sh
|
2012-06-08 12:49:12 -04:00
|
|
|
|
|
|
|
rm -f .hotspotrc
|
|
|
|
echo -XX:+aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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